Convert Visio Files to PDF Using C#

Started by StefCarle, August 13, 2009, 11:35:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

StefCarle

hi,
i need to convert visio file in to a .pdf format in a c# project.  Could someone help?
thanks

Visio Guy

Hi Stef,

This should get you started:


Visio.ActiveDocument.ExportAsFixedFormat(Visio.VisFixedFormatTypes.visFixedFormatPDF, ...


You have to have the Save As Pdf feature installed. In Office 2007, this (or was) a seperate download:

  Download details: 2007 Microsoft Office Add-in: Microsoft Save as ...

If you have Visio 2003 or earlier, this method doesn't exist, and you'll have to use some sort of third party tool.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010