in reply to Controlling IE Printing from a Win32::OLE object

Untried, untested, but perhaps you should take a look at Win32::IE::Mechanize...

Update: OK, on doing some further digging, I don't think Win32::IE::Mechanize is going to help you.

I think what you want to do is have a close look at Reusing MSHTML, particularly what it has to say about Print Templates:

To customize printing and the Print Preview feature introduced in Internet Explorer 5.5, use the IDM_PRINT and IDM_PRINTPREVIEW commands to pass the URL of a custom print template to MSHTML. Print templates give you control over the way MSHTML prints a document; they also offer control over the UI features provided in print preview mode.

HTH,

planetscape
  • Comment on Re: Controlling IE Printing from a Win32::OLE object