export page with resolution/ size xy

T

Tim Bücker

Hello.

I want to export a page as a png file.
I am doing it with
page.Export(fullPath);

Everything is working ok but the image file is too big.
Is it somehow possible to reduce the size of an outputted image?

Thanks a lot for every little hint on this topic.
Greetings,
Tim.
 
G

Graham Wideman \(Visio MVP\)

Tim:

Can you get a desirably sized image using manual SaveAs? If so you probably
want to know how to set those same settings using page.Export, right?

Well, there's no direct way to do it. One stopgap measure is to set the
settings manually once, then within the same session those setting stick for
subsequent saves of that format (like with page.Export).

But that's still not very automated. You can almost use SendKeys to
manipulate the dialogs, but I've found it prone to failure. With my Visio
2003 book I supply a component and more elaborate method that seems more
reliable... but it's still a kludge considering that we should be able to
just set those parameters on the object model somewhere!

Graham
 

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