Prod.: Engine, ver.: 6014, ID: 60000744, Wish : Add the Printer.SelectPaper "DEFAULT-PAPER"

Wish : Add the Printer.SelectPaper "DEFAULT-PAPER"

Article60000744
TypeWish
ProductEngine
Version6014
Date Added1/15/2009
FixedYes [1/16/2009]
Submitted byFrancois Peens
Keywords

Subject

Add the Printer.SelectPaper "DEFAULT-PAPER"

Summary

Is it possible to add the Printer.SelectPaper "DEFAULT-PAPER" so the default paper of the printer settings is selected instead of A4 ?

Solution

We have added the "PRINTER-DEFAULT" to the SelectPaper method so you will have to change your code to something like :
     VD.ActiveDocument.Model.Printer.PrinterName = Printer.DeviceName
     VD.ActiveDocument.Model.Printer.SelectPaper="PRINTER-DEFAULT"
     VD.ActiveDocument.LayOuts(xxx).Printer.PrinterName = Printer.DeviceName ' this for all layouts of the drawing if exist
     VD.ActiveDocument.LayOuts(xxx).Printer.SelectPaper="PRINTER-DEFAULT"
in order to set all layouts to the default system printer and default printer's paper. The above applies also for the VDF .NET libraries.

Added in 6015