I have problem with text direction after I download from stream stored in DB. Here is the problem:
- After I download and save to local file, I open it and I got the message ‘Powerpoint found unreadable content’. After I click yes, the file can open, but the text direction is incorrect. I only get stream from DB without any update or change.
I attached the template and the result for you can investigate.
I’ve found out some topics related to unreadable content but, it doesn’t help my case.
Below is the code for download function:
PresentationEx fromTemplate = new PresentationEx(new MemoryStream(template));
this.Response.ContentType = “application/vnd.ms-powerpoint.presentation.12”;
this.Response.AppendHeader(“Content-Disposition”, “Attachment; filename=fromTemplate.pptx”);
this.Response.Flush();
System.IO.Stream st = this.Response.OutputStream;
fromTemplate.Write(st);
this.Response.End();
I appreciate for any help from you and customer support
Hi Giang,
Could you notify me when this issue will be resolved? Thank you.
Hi Giang,
Hi Mudassir,
Have you got the version 6.9.0 available? I have the demo with business users next week, but they only want to use pptx file.
I hope I can get the update version by end of this week for me can update the source code asap.
Thank you for your support.
GN
Hi Giang,
The issues you have found earlier (filed as SLIDESNET-33780) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)
Hi,
After I installed the latest version, the text direction issue is solved, but I still have some issues below:
- When I open the saved pptx, I got error message"Powerpoint found unreadable content in …". The detail msg “This file may have become corrupt or damaged for the following reasons:
Third-party XML editors sometimes create files that are not compatible with Microsoft Office XML specifications.
The file has been purposely corrupted with the intent to harm your computer or your data.”
- Another issue is can’t write custom document properties to the file. Before it works with my ppt file.
Please help me to resolve these issues.
Thanks,
GN
Hi GN.
Hi Mudassir,
I attached the testing template and the download file. I just tried to test the simple function.
You will see in the download file, I can’t get properties and also have error when open it.
Below is my code:
PresentationEx report = new PresentationEx(“F:\Projects\ES Reporting\CR_Template1.pptx”);
DocumentPropertiesEx dp = report.DocumentProperties;
foreach (SlideEx slide in report.Slides)
{
switch (slide.SlideNumber)
{
case 1:
case 2:
report.DocumentProperties[String.Format("{0}", slide.SlideId)] = 1;
break;
default:
report.DocumentProperties[String.Format("{0}", slide.SlideId)] = 0;
break;
}
}
// report.Write(“F:\Projects\ES Reporting\CR_Template_Download.pptx”);
report.Save(“F:\Projects\ES Reporting\CR_Template1_Download.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);
Please let me know if I’m lacking of anything.
Thanks,
Giang
Hi Giang,
Hi there,
I’m using Powerpoint 2007. I also attached the screen snapshot here for you can investigate.
Thanks,
Giang
Hi Giang,