Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Metafiles
Collapse All

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

Syntax

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

Example

Using the Device Context

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLicenseData('demo', 'demo');
PDF.UseScreenBasedDC := false;
PDF.PrinterNameForDC := 'Microsoft Office Document Image Writer';

{ use standard GDI drawing functions: }
Rectangle(PDF.GetDC(), 10, 10, 200, 200);

PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLicenseData("demo", "demo");
PDF->UseScreenBasedDC = false;
PDF->PrinterNameForDC = "Microsoft Office Document Image Writer";

// use standard GDI drawing functions:
Rectangle(PDF->GetDC(), 10, 10, 200, 200);

PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetLicenseData("demo", "demo");
PDF.UseScreenBasedDC = false;
PDF.PrinterNameForDC = "Microsoft Office Document Image Writer"

// use standard GDI drawing functions:
Rectangle(PDF.GetDC(), 10, 10, 200, 200);

PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.SetLicenseData "demo", "demo"
PDF.UseScreenBasedDC = False
PDF.PrinterNameForDC = "Microsoft Office Document Image Writer"

// use standard GDI drawing functions:
Rectangle PDF.GetDC, 10, 10, 200, 200

PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots