70001297 Print dialog wishes

Article 70001297
Type Wish
Product Engine
Version 7014
Date Added 3/13/2018 12:00:00 AM
Fixed 7.7015.0.6 (6/8/2018 12:00:00 AM)
Submitted by Zoltan Ferenczy

Summary

Print dialog wishes see attached email

Solution

We made some improvements in our print dialog.

In our default form we added a combo box that the user can use to identify the export format when using the dialog to export the drawing to a file (bmp , pdf , emf etc...).

We also added a new Show method like below so the dialog does not perform the print operation (or export to file) but instead returns only the DialogResult of the form , then our user can perform the operation on his own.
summary> Used to show the dialog.
param name="printer">The vdprint object.
param name="OnlyDialogResult">A boolean value representing if the dialog will only return the dialo result or it is going to perform the print operation also.
returns>A DialogResult indicating the user's action.
static public DialogResult Show(vdPrint printer, bool OnlyDialogResult)

This can be used like below

DialogResult res = frmPrintManager.Show(doc.ActiveLayOut.Printer, true);

OR you can also set the PrinterName to initialize the form with SaveToFile option
doc.ActiveLayOut.Printer.PrinterName = "*.bmp";
DialogResult res = frmPrintManager.Show(doc.ActiveLayOut.Printer, true);

Send comments on this topic.