A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Exporting Visio File to PDF in .NET



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2009, 05:40 AM posted to microsoft.public.visio.general
mos
external usenet poster
 
Posts: 6
Default Exporting Visio File to PDF in .NET

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
  #2  
Old May 7th, 2009, 12:58 PM posted to microsoft.public.visio.general
AlEdlund
external usenet poster
 
Posts: 468
Default Exporting Visio File to PDF in .NET

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.vis FixedFormatPDF,
strFile, VisDocExIntent.visDocExIntentPrint, VisPrintOutRange.visPrintAll)
End If

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



"Mos" wrote in message
...
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.