Setting image resolution for export in a macro

R

RonBiggs

I cannot find documentation for methods related to exporting to a PNG file
that allow me to set both size and resolution settings that are available in
the dialog box if you SaveAs by hand.

In one post in this forum, the export method is stated merely as
ActivePage.Export "C:\My Documents\fig1.jpg"

But there are no other methods available (that is, presented) for setting
these parameters. How would I programmatically set resolution to be 200x200
with size = "Source"?
 
C

Chris Roth [ Visio MVP ]

As far as I know, you can't.

You *can* however muck around a bit if you use the Visio Save As Web type
library. I believe there are some resolution settings in there. Play with
the Save As Web > Publish... settings to see if I am correct, I haven't
touched it for a while.

Of course, you'll end up with a complete web export and have to go delete a
bunch of .gif, .js, .xml, .htm files afterwards, but it's better than
nothing.

--

Hope this helps,

Chris Roth
Visio MVP
 

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