none
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.

    Questions:

    * 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.

    Regards,

    Suman



    Friday, April 19, 2013 12:11 PM

Answers

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

    IMAPIForm.DoVerb(EXCHIVERB_PRINT,...)

    No options can be set or retrieved.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    Friday, April 19, 2013 2:43 PM