Setting image resolution for export in a macro

Setting image resolution for export in a macro

Post by Um9uQmlnZ3 » Fri, 18 Mar 2005 05:45:01

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"?

 
 
 

Setting image resolution for export in a macro

Post by Chris Roth » Fri, 18 Mar 2005 20:06:41

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