Converting MS Project and MS Visio files

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
Theta
Posts: 25
Joined: Wed Jun 25 2003
Location: Australia

Converting MS Project and MS Visio files

Post by Theta »

I was hoping someone might have any clues on how to convert from these file types to pdf, neither com interface seems to allow for printing to a file

ie in visio the print method doesn't take any arguments and project takes some arguments but doesn't contain anything like an output file name.

Thanks in advance

Matthew White
MatthewW@Thetatechnologies.com.au
rushing
Posts: 13
Joined: Wed Sep 10 2003

Post by rushing »

Haven't worked with automating Visio or Project via VB, and I don't have either installed on my machine, but if the Visio Print method has no arguments, my guess is that it would be printing the active document to the default printer.

So, all you would have to do is set up the PDF Converter printer object to print to a specific file and make it the default printer. Then, with the appropriate Visio doc opened, simply call the print method. That should print to the active printer, which will be set to the PDF Converter printer object, which will dump it out to your PDF file.

Something similar should work for Project.
Post Reply