I am getting the following error while opening the powerpoint file, generated using open xml. I compared the xml of repaired file and corrupted file, it seems to be the same. Can you please help
Thanks in advance.
Edit:
I used the sample code from here . If you run this code, it works fine. However, if we change this part:
bodyShape.TextBody = new TextBody(new Drawing.BodyProperties(),
new Drawing.ListStyle(),
new Drawing.Paragraph(new Drawing.Run(new Drawing.Text() { Text = text }));
It creates the corrupt file.
string _DescripcionSuperior = "Hello World";
bodyShape.TextBody = new P.TextBody(new Drawing.BodyProperties(),
new Drawing.ListStyle(),
new Drawing.Paragraph(new Drawing.Run(
new Drawing.RunProperties() { Language = "es-MX", FontSize = 1000, Dirty = false, Bold = false },
new Drawing.Text(_DescripcionSuperior)
)));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.