Upgrade from Slides 8.2.0: ConnectorType gone

We have currently started to upgrade from Slides 8.2.0 to 14.6.0.

Hopefully anyone can help us with the the first issue we came across:

We were using the connector available in the non ‘ex’ version of the classes, using ConnectorType.Elbow, ConnectorType.Straight and ConnectorType.Curve constants
The ConnectorType is not available any more.
It seems from the method adding the connector to the slides, the general ShapeType constants have replaced them. Which are the equivalents of the former ConnectorType ones?

So far I did not find much detailed information at aspose.com about upgrading. Please point me to where issues like these are elaborated in some detail.

Regards,
Ad van Ommen

Hi Ad,

Thank you for the details.

Please see the following sample code regarding how to add connectors using the latest version of Aspose.Slides for Java.


Presentation pres = new Presentation();

ISlide slide = pres.getSlides().get_Item(0);

IShape conn = slide.getShapes().addConnector(ShapeType.StraightConnector1 , 200, 300, 40, 70);

// Set connector style
Connector con = (Connector)conn;

con.getShapeStyle().setEffectStyleIndex (2);

con.getLineFormat().getFillFormat().getSolidFillColor().setColor (Color.RED) ;

con.getLineFormat().setWidth ( 5);

pres.save(“D:\Data\Connector3.pptx”, SaveFormat.Pptx);

In case you still face any issue or need any further assistance, please feel free to contact support.

Thanks & Regards,

Thanks Owais,


I do have code like this. Using addConnector this way does have a problem though with negative width and height. This causes errors when opening in PowerPoint. If I know the (approximate) coordinates of Begin and End of the Connector, how do I handle the cases where it does not direct from left to right and from up to down?

Yet I do need to set the correct coordinates using addConnector, since it is possible to define Begin and End with:

connector.setStartShapeConnectedTo(shapefrom);
connector.setStartShapeConnectionSiteIndex(0);
connector.setEndShapeConnectedTo(shapeto);
connector.setEndShapeConnectionSiteIndex(2);

Provided that at least width and height are not negative in the addConnector call, this produces a diagram I can open in PowerPoint. (see attached demo_1.1_default.pptx)
It does not show the connectors as specified between the shapes, but with the coordinates given in the addConnector call. However: whenever I move a shape using PowerPoint, the connectors to and from this shape are redrawn correctly! (see result after moving all shapes a litte in demo_1.1_default_touched.pptx)

What can I do to have it displayed correctly without moving the shapes in PowerPoint?

Kind Regards,
Ad van Ommen

Hi Ad,

Thank you for the feedback.

Please share your sample code with us which you are using to generated the presentation files. We will check it and assist you accordingly.

Thanks & Regards,

I decided to write a simple JUnit test and added it as a .txt file. (cannot upload .java)

In addition I added my output.
It does show a connector but this ‘jumps’ into its proper form only after a change in position of one of the rectangles. Just for reference I include screenshots of the output opened in PowerPoint before and after the change in position

Hi Ad,

Thank you for sharing the sample code.

I am able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: SLIDESJAVA-34546. You will be notified via this forum thread once the issue gets resolved.

Thanks & Regards,

Hi Owais,


This issue is a showstopper for us. We are in the process of adding functionality but decided to upgrade first from 8.x. Can you please inform us on the progress?

With kind regards,
Ad van Ommen
PwC

Hi Ad,

The issue is scheduled for fixing in Aspose.Slides for Java v14.9.0. Once the issue gets resolved and the said version gets released, you will be notified via this forum thread.

Thanks & Regards,

Aspose Slides for Java v14.9.0 is released. No mention of this issue in the release notes though.

Has it been resolved or not?

Hi Ad,

I have verified the status of your reported issue and the issue has not be fixed yet and is rescheduled to be fixed in Aspose.Slides for Java v14.12.0 due to the scheduling of some high priority issue. Once we have any update, we will let you know via this thread.

Thanks & Regards,

Hi, can we get an update on the planned release of this fix? It is now very urgent for us.

Thanks and regards.
Ad & PwC team

Hi Elbert,


I have checked the status of the issue in our issue tracking system and the issue is currently scheduled to be fixed in Aspose.Slides for Java v15.3.0 to be released by end of March 2015. We will update you in case there is any change in the plan regarding your reported issue.

Thanks & Regards,

Hi, if we upgrade to Enterprise Support, will it be possible to get a hot fix for this issue? Many thanks for your reply.

Hi Elbert,


I like to share the connectors layouting is unavailable in Aspose.Slides for Java 15.x.x series at the moment. We are working over providing the support for connectors and their joining in the new API. If you go for enterprise support for this issue then things may get expedited but the hotfix will only be possible if the feature implementation takes place, which is blocked at the moment.

Many Thanks,

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.