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