how to set the PrintOptions?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mblank
    New Member
    • Jun 2010
    • 7

    how to set the PrintOptions?

    how can i set the Paper orientation



    Code:
     Microsoft.Office.Interop.PowerPoint.Presentation work = null;             
                Microsoft.Office.Interop.PowerPoint.Application app = new Microsoft.Office.Interop.PowerPoint.Application(); 
      work = presprint.Open(filename, Microsoft.Office.Core.MsoTriState.msoCTrue, Microsoft.Office.Core.MsoTriState.msoCTrue, Microsoft.Office.Core.MsoTriState.msoFalse); 
                work.PrintOptions.PrintInBackground = 0;
    there is no Paper orientation set in the printoptions... ...
Working...