Exporting Visio File to PDF in .NET

M

Mos

Hi All,
I am automating visio in vb.net. I have done with organisation chart in
vb.net. Now I want to export that chart to pdf file programically. Any help
will be greatly appreciated.
Thnx in advance,
Mos
 
A

AlEdlund

something like this should work,
al


SaveFileDialog1.Filter = "pdf files (*.pdf)|*.pdf|All files
(*.*)|*.*"
SaveFileDialog1.FilterIndex = 1
SaveFileDialog1.RestoreDirectory = True

If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
Dim strFile As String = SaveFileDialog1.FileName
visDoc.ExportAsFixedFormat(VisFixedFormatTypes.visFixedFormatPDF,
strFile, VisDocExIntent.visDocExIntentPrint, VisPrintOutRange.visPrintAll)
End If

MsgBox("ExportComplete", MsgBoxStyle.Information,
"ExportDocument")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top