PrinterForVirtualDC
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property gets or sets the name of the printer to use for virtual DC creation.

Syntax

BSTR PrinterForVirtualDC { get; set; }
Value
String containing the name of the printer

Remarks

This property is used to set or retrieve the name of the printer to use for virtual DC creation. You should set the printer name to use before using BeginDoc or NewPage.

Equivalent in new interface: IPDFDocument4::PrinterNameForDC.

Example

Setting a Printer for Virtual DC

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.FileName := 'empty.pdf';
PDF.AutoLaunch := true;
PDF.PrinterForVirtualDC := 'Microsoft Office Document Image Writer';
PDF.BeginDoc();
{ something else goes here... }
PDF.EndDoc();
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->StartEngine("demo", "demo");
PDF->FileName = "empty.pdf";
PDF->AutoLaunch = TRUE;
PDF->PrinterForVirtualDC = "Microsoft Office Document Image Writer";
PDF->BeginDoc();
// something else goes here... 
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.StartEngine("demo", "demo");
PDF.FileName = "empty.pdf";
PDF.AutoLaunch = true;
PDF.PrinterForVirtualDC = "Microsoft Office Document Image Writer";
PDF.BeginDoc();
// something else goes here... 
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.StartEngine "demo", "demo"
PDF.FileName = "empty.pdf"
PDF.AutoLaunch = True
PDF.PrinterForVirtualDC = "Microsoft Office Document Image Writer"
PDF.BeginDoc
' something else goes here... 
PDF.EndDoc

See Also

Reference