How to ignore/solve “Repair” message from Powerpoint report generated by OpenXML with ASP.net

℡╲_俬逩灬. 提交于 2019-12-10 12:06:50

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!