Outlook Page Setup properties RRS feed

  • Question

  • Hi,

    I am working on a plug-in for Outlook versions 2007-2013. I need to be able to do the following programmatically:

     * Get/set the orientation value set by the user via the Print Options > Page Setup dialog

     * Pop-up Outlook's Page Setup dialog on demand

    I have had a thorough look at the Object Model documentation for all the versions and TLH files (that I generated) but my search has been futile. The MAPI documentation does list a  IMAPIViewContext::GetPrintSetup but I am not sure this is what is needed.


    * Is it possible to retrieve the orientation value set in the Page Setup dialog programmatically in any of the Outlook versions I am working on?

    * Will IMAPIViewContext::GetPrintSetup work? (I have never used MAPI, so I'll give this a spin in the meantime.)

    * Is it possible to pop-up the Page Setup dialog?

    Any suggestions will be much appreciated.



    Friday, April 19, 2013 12:11 PM


  • You cannot do any of that. The only thing you can do is tell MAPI to print a message by calling


    No options can be set or retrieved.

    Dmitry Streblechenko (MVP)
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    Friday, April 19, 2013 2:43 PM