60000243 New feature added in Printer's dialog and it can be used for PDF export.

Article 60000243
Type General
Product Engine
Version 6008
Date Added 9/10/2007
Fixed (9/10/2007)
Submitted by Peter Chanios

Summary

New feature added in Printer's dialog and it can be used for PDF export.

Solution

/// <summary>
/// Shows the printer dialog in order to be used for PDF export.
/// </summary>
public static void PDFExport(vdDocument doc)
{
doc.FileProperties.PDFExportProperties =
vdFileProperties.PDFExportPropertiesFlags.UsePrinterPropertiesWithOutlineText;
vdPrint printer = new vdPrint(doc.ActiveLayOut.Printer);
printer.PrinterName = VectorDraw.Professional.Utilities.
vdGlobals.GetFileNameWithoutExtension(doc.FileName)+".pdf";
printer.InitializePreviewFormProperties(
true, true, false, false);
printer.DialogPreview();
}

Send comments on this topic.