Free Support Forum - aspose.com

Powerpoint gets Corrupted during save

Hi Guys,

i have a Powerpoint Slide which contains 2 autoshapes (arrow and rectangle). if i simply execute the following code.

Dim lpres As New Aspose.Slides.Presentation("c:\temp\replace.ppt")

lpres.Write("c:\temp\replace2.ppt")

the size of these shapes are totally reduced and the layout is therefore rubbish.

Attached is the file.

One additional note to that Problem. I think the problem is related to a Textholder. The original Shapes in Replace.ppt have no textfield assigned. After saving with Aspose.slides you can write text into the shape, and powerpoint resizes the shape to the size of the textbox.

How can i avoid the append of the textholder?

best regards,

Kai

Dear Kai,

I am unable to get your presentation, it seems, there is no attached presentation. Please reattach it.

To attach it follow these steps

[Reply] -- > [Options] -- > [Add/Update]

hi,

i updated the first post. with the attachment.

best regards,

kai

Dear Kai,


I have reported this bug for a fix which will be available in a couple of weeks.

Hi,

i have two Product presentations end of next week, do you think i can get a pre hotfix for that?

best regards,

Kai

Dear Kai,

I will ask the technical team whether it is possible to grant your request and then let you know.

We had a similar issue with an AutoShape that was in a PowerPoint file that I got from one of our template designers. He had put an AutoShape around a chart object to make it look like it had a border with rounded corners. The shape looked fine in the original PowerPoint, but when it was saved by Aspose.Slides, the shape got mangled.

Then I noticed that in the original PowerPoint file, several of the "size" fields (Format AutoShapes..., Size tab) had blank values. I plugged in "100%" into the two "Scale" fields, resaved the original PowerPoint, and then it worked fine.

You might want to check your AutoShapes properties and see if you are running into the same problem. See attached jpeg.

Todd

kaiwachter:

Hi Guys,

i have a Powerpoint Slide which contains 2 autoshapes (arrow and rectangle). if i simply execute the following code.

Dim lpres As New Aspose.Slides.Presentation("c:\temp\replace.ppt")

lpres.Write("c:\temp\replace2.ppt")

the size of these shapes are totally reduced and the layout is therefore rubbish.

Attached is the file.

One additional note to that Problem. I think the problem is related to a Textholder. The original Shapes in Replace.ppt have no textfield assigned. After saving with Aspose.slides you can write text into the shape, and powerpoint resizes the shape to the size of the textbox.

How can i avoid the append of the textholder?

best regards,

Kai

I have checked it after the modifications (setting the scaling factor for width and height to 100%) told by Todd and it worked fine.

I have attached the modified replace.ppt and out1.ppt.

Thank you, Todd, for showing us your observation. I will also update the bug with this observation.

Hi Todd and Faiz,

thanks for your reply. I am using Office 2007, when check with office 2007 both values are already 100%. May this is a bug of office 2007 when saving as office 2003 File Format.

But at least it is maybe possible that aspose.slides can take care of such inconsistencies?

thanks a lot for your help.

regards,

Kai

Hello,

I'm currently testing the nice library ASPOSE.slide with the evaluation version.

I try to generate a ppt file from an other ppt file (like a template) and changing some text value.

Most of my tests works fine. Unfortunatly, with some ppt file, I have a problem to read the generated file :

MS-Powerpoint doesn't open the new generated file and give me a strange reason "PowerPoint cannot open 'myfile.ppt' because it's not ended/terminated/completed"

In the following zip file you can find :

- my class to test (TestAsposeSlide.java),

- a template example that work and it's result that work too (Work.ppt and Result Work.ppt),

- a template example and it's result that doesn't work (Dont work.ppt and Result of Dont Work.ppt),

- a screen shot of the Powerpoint message when i try to open the generated file.

if i don't modify size text, then all is ok ...

if i modify text size into some autoShape into the master in some case, Powerpoint can't open generated file

Could you help me ?

Thanks.

BPirenne

It seems to be Aspose.Slides bug, but I need more time to investigate it. Can you please tell, how did you create the Don’t Work.ppt? Did you use MS-PowerPoint to create it or some other tool? Which version did you use?

We saved template Don't Work.ppt with MS-Powerpoint version 2003 but maybe the initial version of the ppt come from an older version of Powerpoint.

Thank for your time.

BPirenne

Hello !

Since my previous message, I’ve subscribed to your service and bought a license ... so now I’ve downloaded the last version 1.7.4.0 (Aspose.Slides)... but unfortunately, that don't work better :-(

Could you help me please!

Bernard

Dear Bernard,

Thank you for purchasing Aspose.Slides for Java.

Unfortunately, we couldn't fix this problem because of some unknown reasons causing it. Sorry for delay.