问题
I have been struggling with openxml for few days but finally able to generate the PPT reports in format as required. Just one thing which is not done is as soon as I download the report and open, it display the below message(in shot). If I click repair, it opens fine but the users aren't happy with it. I have searched a lot but couldn't find out the answer.
I'll really appreciate the help.
The generated PPT contains tables which is the main reason I get this Repair message cuz' I don't get this in another report which contains just text.
Code that generate table is present here: create dynamic table in powerpoint using openXML with c# and ASP.net
Links to code and previous questions.
unable to generate second table in PPT report using openxml
create dynamic table in powerpoint using openXML with c# and ASP.net
回答1:
Solved it finally using Openxml sdk tool.
1.> Generated .pptx > repaired it > validated in SDK tool > all good. 2.> Generated .pptx > did not repair > validated in SDK tool > error at one place > checked the error. (it was creation of an object).
Used reflected code from point 1. and used the same snippet in my main code.
Done!
If you need more details. Please comment.
来源:https://stackoverflow.com/questions/45863116/how-to-ignore-solve-repair-message-from-powerpoint-report-generated-by-openxml