70000821 Settign the VD printer properties from system default printer

Article 70000821
Type Wish
Product Engine
Version 7008
Date Added 6/30/2016 12:00:00 AM
Fixed 7.7009.0.1 (6/30/2016 12:00:00 AM)
Submitted by Steve

Summary

How can I set the VD printer properties from system's default printer settings (paper, DPI, orientation etc)

Solution

In the 7.7009.0.1 a new method is export in vdPrinter object called UpdatePropertiesFromDefaultPrinter that can be used for this reason.


This is also exported to the VDF Wrapper object in order to be used with VB6/Delphi etc.

In VB6 can be used like :

  Dim prn As VectorDraw_Professional.vdPrint
        VDrawCtl.ActiveDocument.New 'this is the dummy ActiveX control  to have the default printing properties/printer
        Set prn = VDrawCtl.ActiveDocument.ActiveLayOut.Printer.WrapperObject
        prn.UpdatePropertiesFromDefaultPrinter
        prn.Update

Send comments on this topic.