API: How to control the margins of a printed document

Version 3

    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.