We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Add Polyline as Graphic Path


I’m trying a new version Aspose.Slide 5.2

this code:
Presentation templatePres = new Presentation(@“E:\TEMP\test.ppt”);

Slide s = templatePres.AddEmptySlide();

Polyline polpr = s.Shapes.AddPolyline(100, 100, 100, 100, GetPath());
polpr.FillFormat.Type = FillType.Solid;


public static System.Drawing.Drawing2D.GraphicsPath GetPath()
System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
gp.AddLine(0, 10, 20, 0);
gp.AddLine(20, 0, 20, 20);
gp.AddLine(20, 20, 0, 10);
return gp;
returns the exception "Couldn’t load shape from the stream."

In version 5.0, it runs without problems.

Can you help me please.

Alex Kapitanovskyy

Hi Alex,

I have worked with the presentation file shared by you and have been able to observe the issue as shared by you. An issue with ID 28127 has been added in our issue tracking system to resolve this regression issue. This thread has also been linked with the issue so that you may be automatically notified, once the issue is resolved.

We are sorry for your inconvenience,


any news regarding this issue?

Best regards

Hi Alex,

I have discussed with our development team and like to share that the fix for the issue will be available in Aspose.Slides for .NET 5.7.0. We will share information with you once the issue is resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as 28127) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.