in reply to Accessing Visio in perl

If you're going to use Win32::OLE to try and automate things it's often helpful to use the macro recorder to show you what's going on. For example, the VBA code generated by the macro recorder when saving as a png file:

Application.ActiveWindow.Page.Export "c:\test.png"

I'll leave the conversion to perl as an exercise, How do I convert a VBA macro to Perl? should be helpful.

Replies are listed 'Best First'.
Re^2: Accessing Visio in perl
by Anonymous Monk on Apr 19, 2011 at 13:34 UTC
    Thanks a lot for your reply.. The working code is:
    $Visio->ActiveDocument->Pages(1)->Export($path."Drawing.jpg");
    ---- Thanks again for exposing me to a generalized solution.