Changing width and height of shapes

dear Aspose.Diagram support,

I am trying to change the height and width of a shape.

MessageBox.Show(shape.Shapes(1).Shapes(7).XForm.Width.Value)
shape.Shapes(1).Shapes(7).XForm.Width.Value = 22
shape.Shapes(1).Shapes(7).XForm.Height.Value = 10
MessageBox.Show(shape.Shapes(1).Shapes(7).XForm.Width.Value)

The messagebox shows the height and width of the shape was changed - unfortunately when i save it as a pdf, the size is still the original value.

Any ideas ? maybe I need to refresh something ( the parent ? ..)

thanks for your ideas.

guido


Hi Guido,


Thanks for your inquiry. I tested your scenario with a sample VSD file against the latest build of Aspose.Diagram for .NET 3.0.0. I managed to replicate the problem on my side. This problem has been logged in our bug tracking system under ticket id DIAGRAM-33355. We will soon investigate the cause. Also, you will be notified once the fix for your problem is available for public use.

for planning purposes, when do you think this can be resolved ?

Are we talking days, weeks, months…
guido

Hi Guido,


Thanks for your inquiry. It is to update you that our development team is working to analyze the problem. We have planned to include the fix of issue id DIAGRAM-33355 in our Aspose.Diagram for .NET release 3.2.0. If everything goes by plan, we’ll be able to provide you the fix at the start of May 2013. I hope this will help you.

Hi Guido,


Good news for you is DIAGRAM-33355 has now been resolved and its fix will be included in the next version of Aspose.Diagram for.NET (3.2.0). Which is expected to be released at the start of May 2013. We will inform you via this forum thread as soon as the new release is published.

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


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

I have tested this today and it is still not resolved.


Dim license As Aspose.Diagram.License = New Aspose.Diagram.License()
license.SetLicense(“F:\Aspose Licenses\Aspose.Diagram.lic”)
Dim x As New Aspose.Diagram.Diagram(“C:\trend.vsd”)
Dim y As Aspose.Diagram.Shape = x.Pages(0).Shapes(0).Shapes(27)
REM delete the line below as needed
y.XForm.Width.Value = 2 * y.XForm.Width.Value
x.Save(“C:\x.pdf”, Aspose.Diagram.SaveFileFormat.PDF)…

Am i doing something stupid ?

guido

Hi Guido,

Thanks for your inquiry. I’m sorry about this inconvenience. You need to use the new shape’s methods SetWidth and SetHeight. Please follow the documentation link here:

Please let me know in case of further assistance or questions.

That did the job. Thanks for your great product and support !

Hi Guido,


Thank you. Please let us know any time you have any further queries. We are always glad to help you.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.