hello, this is my code to convert visio file to pdf file
Dim Diagram As Diagram = New Diagram(CurrentPathFile)
Dim pdfStream As MemoryStream = New MemoryStream()
diagram.Save(pdfStream, SaveFileFormat.PDF)
Dim pdfFileStream As FileStream = New FileStream(DirectCast(Session(“SDK”), VisionFileClientSDK.VFSDK).TempPath & “\Temp” & Session.SessionID & “_” & Session(“FilesCount”) & “.pdf”, FileMode.Create, FileAccess.Write)
pdfStream.WriteTo(pdfFileStream)
pdfFileStream.Close()
pdfStream.Close()
and (CurrentPathFile) is a net work path not phisical path , then i had error in the line :
diagram.Save(pdfStream, SaveFileFormat.PDF)
when i use a phisical path it is work correctly
regards ,