API: How to control the margins of a printed document

Document created by Joyce Bossom Employee on Dec 15, 2010Last modified by Joyce Bossom Employee on Nov 2, 2012
Version 3Show Document
  • View in full screen mode

Use these methods and enumerators to control the margins of a printed document:

 

 

ISldWorks::GetUserPreferenceToggle
     (swUserPreferenceToggle_e.swPageSetupPrinterUsePrinterMargin)
ISldWorks::SetUserPreferenceToggle
     (swUserPreferenceToggle_e.swPageSetupPrinterUsePrinterMargin, True)
ISldWorks::GetUserPreferenceDoubleValue
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterTopMargin)
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterBottomMargin)
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterLeftMargin)
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterRightMargin)
ISldWorks::SetUserPreferenceDoubleValue
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterTopMargin, double_value)
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterBottomMargin, double_value)
     (swUserPreferenceDoubleValue_e.swPageSetupPrinterLeftMargin, double_value)

     (swUserPreferenceDoubleValue_e.swPageSetupPrinterRightMargin, double_value)


 

Note:
- Subscription Services required for full access.

- Looking for more API Examples?


Copyright © 2010 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.

Attachments

    Outcomes