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