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

Free Support Forum - aspose.com

Problem opening in Visio

Hi,

I've run the code:

Dim st As New IO.FileStream(HttpContext.Current.Server.MapPath("Visio Template.vsd"), IO.FileMode.Open)

Dim vsdDiagram As New Aspose.Diagram.Diagram(st)

st.Close()

Me.Response.ContentType = "application/vnd.ms-visio"

Me.Response.AppendHeader("Content-Disposition", "attachment; filename=Diagram.vdx")

Me.Response.Flush()

Dim str As System.IO.Stream = Me.Response.OutputStream

vsdDiagram.Save(str, Aspose.Diagram.SaveFileFormat.VDX)

Me.Response.End()

but the resultant output doesn't open in Visio. Visio returns the error:

Visio is unable to open the XML file. It does not contain valid XML.

Line, Column: 1, 25533

Error: Error parsing '-4' as unsignedLong datatype.

The attribute 'WindowWidth' with value '-4' failed to parse.

I would attach the 2 Visio files, but the website doesn't let me.

Thanks,

Steve

Dear Steve,

Present version of Aspose.Diagram for .NET supports MS Visio 2010 documents only. Previous versions of MS Visio are not supported by this version but our developers are working on these features and support for MS Visio 2003 and 2007 will be included in one of the future releases.

We will keep you updated on these issues in this thread.

Please feel free to contact us in case you have further comments or questions.

Best Regards,

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