From 7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 17 Oct 2008 06:10:33 +0000 Subject: First commit - moving from LuaForge to SourceForge --- html/en/drv/printer.html | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 html/en/drv/printer.html (limited to 'html/en/drv/printer.html') diff --git a/html/en/drv/printer.html b/html/en/drv/printer.html new file mode 100644 index 0000000..d354fe2 --- /dev/null +++ b/html/en/drv/printer.html @@ -0,0 +1,83 @@ + + + + + + +CD_PRINTER + + + + + +

CD_PRINTER - Printer Driver (cdprint.h)

+ +

This driver provides access to a System Default Printer.

+

Currently, it works only in Microsoft Windows platforms, but it is possible + to use it in other platforms without the risk of compilation error. If you + attempt to create a canvas in another platform, the function + + cdCreateCanvas will return + NULL.

+ +

Use

+ +

The canvas is created by calling function + + cdCreateCanvas(CD_PRINTER, Data), after which + other CD functions can be called as usual. The Data + string has the following format:

+ +
"name [-d]"    or in C style "%s -d"
+ +

name is an optional document name that will + appear in the printer queue. Optionally, -d + displays the System Printer dialogue box before starting to print, allowing + you to configure the printer's parameters. When using this parameter and the + return canvas is NULL, one must assume that the print was canceled by the + user.

+

Any amount of such canvases may exist simultaneously. It is important to + note that a call to function + + cdKillCanvas is required to + properly send the data to the printer.

+

Pages - Use + + Flush to change to a new + page. You can draw first on page 1, then on page 2 and so forth.

+

To use this driver in Windows using GDI+ is necessary to call + + cdUseContextPlus(1) +before creating the canvas.

+ +

Behavior of Functions

+ +

This driver is greatly platform-dependent. For further detail, see the + Behavior of Functions in each platform: Microsoft + Windows (GDI), Windows Using GDI+, + X-Windows (XLIB). However, it should be noted that + some functions behave differently from the basic functions of each platform.

+

A printer created in Win32s has the same limitations as the + WMF driver. In Windows 95 or NT, it has the same + limitations as the EMF driver.

+ +

Control

+ +

Attributes

+ + + + + -- cgit v1.2.3