如何忽略/解决“修复"问题.来自PowerXML报告的消息,该报告由OpenXML使用ASP.net生成 [英] How to ignore/solve "Repair" message from Powerpoint report generated by OpenXML with ASP.net

查看:82
本文介绍了如何忽略/解决“修复"问题.来自PowerXML报告的消息,该报告由OpenXML使用ASP.net生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为openxml苦苦挣扎了几天,但最终能够按照要求的格式生成PPT报告.仅有的一件未完成的事情是,一旦我下载报告并打开,它就会显示以下消息(截图中). 如果单击修复",它会很好地打开,但用户对此不满意.我已经搜索了很多,但找不到答案.

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.

生成的PPT包含表格,这是我收到此修复消息的主要原因,因为我没有在仅包含文本的另一个报告中得到此信息.

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.

生成表的代码在此处: 使用以下方法在Powerpoint中创建动态表具有c#和ASP.net的openXML

链接到代码和先前的问题.

无法使用以下方法在PPT报告中生成第二张表openxml

创建动态表在Powerpoint中使用带有c#和ASP.net的openXML

推荐答案

终于使用Openxml sdk工具解决了它.

Solved it finally using Openxml sdk tool.

1.>生成的.pptx>对其进行了修复>在SDK工具中经过验证>一切正常. 2.>生成的.pptx>未修复>在SDK工具中验证>一处出错>检查了错误. (它是对象的创建).

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).

使用了第1点的反射代码,并在我的主要代码中使用了相同的代码段.

Used reflected code from point 1. and used the same snippet in my main code.

完成!

如果您需要更多详细信息.请给出意见.

If you need more details. Please comment.

这篇关于如何忽略/解决“修复"问题.来自PowerXML报告的消息,该报告由OpenXML使用ASP.net生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆