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

Free Support Forum - aspose.com

Exception when saving file as SVG

The exception shown below is thrown when attempting to save the attached file as SVG.

Follow up.zip (361.3 KB)

The code used is given below:

    Dim mapName As String = "C:\temp\Aspose Diagram Test\Mass Save Maps\Follow up.vsdm"
    Dim map As New Aspose.Diagram.Diagram(mapName)
    map.Save(txtHTMLOutput.Text, Aspose.Diagram.SaveFileFormat.SVG)

System.OverflowException was unhandled
HResult=-2146233066
Message=Arithmetic operation resulted in an overflow.
Source=Aspose.Diagram
StackTrace:
at . ()
at ​ . (ArcTo )
at Aspose.Diagram.ArcTo.f4es3h4h4uk24n5gdd6m75qg2r3qyb9q ( ​ )
at ​ . (Geom , )
at . ( , )
at . ( , )
at . ( , )
at . ( , )
at . (Page , )
at . (Page )
at . (Int32 )
at . (Stream , SVGSaveOptions , Diagram )
at . (Object )
at . (MethodBase , Boolean )
at . ( )
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . (Object[] , Type[] , Type[] , Object[] )
at . (Int32 , Type[] , Type[] , Boolean )
at . ( )
at . ()
at . ()
at . (Object )
at . ()
at . ( )
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . (Object[] , Type[] , Type[] , Object[] )
at Aspose.Diagram.Diagram.Save(String filename, SaveFileFormat format)
at AsposeDiagram.Form1.Button1_Click(Object sender, EventArgs e) in N:\Product Development\Andrew Ridgeley\Temporary Projects\AsposeDiagram\AsposeDiagram\Form1.vb:line 80
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at AsposeDiagram.My.MyApplication.Main(String[] Args) in :line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

@andrew.ridgeley,
We managed to replicate the said error in our environment. It has been logged under the ticket ID DIAGRAMNET-51319 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Best Regards,
Imran Rafique

@andrew.ridgeley,
The ticket ID DIAGRAMNET-51319 has been resolved. If there is no issue in the quality assurance phase, then this fix will be included in the next version 17.8 of Aspose.Diagram for .NET API. We will notify you once it is fixed.

Best Regards,
Imran Rafique

@andrew.ridgeley,
In reference to the ticket ID DIAGRAMNET-51319, please download and try the latest Hotfix version: Aspose.Diagram for .NET 17.7.1. Please also let us know how that goes on your side.

Best Regards,
Imran Rafique

I can confirm that this problem is now fixed.

Thanks,
Andrew

@andrew.ridgeley,
The ticket ID DIAGRAMNET-51319 has been fixed. Please download and try the new version 17.8 of Aspose.Diagram for .NET API.

Best Regards,
Imran Rafique

I can confirm that the issue has been resolved.

Thanks,
Andrew

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan