60000744 Add the Printer.SelectPaper "DEFAULT-PAPER"

Article 60000744
Type Wish
Product Engine
Version 6014
Date Added 1/15/2009 12:00:00 AM
Fixed (1/16/2009 12:00:00 AM)
Submitted by Francois Peens

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

Send comments on this topic.