TCnPrinterSettings Class
Specifies information about how a document is printed, including the printer that prints it, when printing from a Windows Forms application.
CNClrLib.Control.Base.TClrBaseComponent
CNClrLib.Component.PrintSettings.TCnPrinterSettings
type TCnPrinterSettings = class(TClrBaseComponent) end;
The TCnPrinterSettings type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates and initializes a TCnPrinterSettings instance. (Overrides TClrBaseComponent.Create(TComponent).) | |
Destroy | Frees the resources allocated with a TCnPrinterSettings instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
CanDuplex | Gets a value indicating whether the printer supports double-sided printing. | |
Collate | Gets or sets a value indicating whether the printed document is collated. | |
Copies | Gets or sets the number of copies of the document to print. | |
DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) | |
DefaultPageSettings | Gets the default page settings for this printer. | |
Duplex | Gets or sets the printer setting for double-sided printing. | |
FromPage | Gets or sets the page number of the first page to print. | |
IsDefaultPrinter | Gets a value indicating whether the PrinterName property designates the default printer, except when the user explicitly sets PrinterName. | |
IsPlotter | Gets a value indicating whether the printer is a plotter. | |
IsValid | Gets a value indicating whether the PrinterName property designates a valid printer. | |
LandscapeAngle | Gets the angle, in degrees, that the portrait orientation is rotated to produce the landscape orientation. | |
MaximumCopies | Gets the maximum number of copies that the printer enables the user to print at a time. | |
MaximumPage | ||
MinimumPage | ||
PaperSizes | Gets the paper sizes that are supported by this printer. | |
PaperSources | Gets the paper source trays that are available on the printer. | |
PrinterName | Gets or sets the name of the printer to use. | |
PrinterResolutions | Gets all the resolutions that are supported by this printer. | |
PrinterSettingsIntf | Gets the .Net PrinterSettings object as interface. | |
PrintFileName | Gets or sets the file name, when printing to a file. | |
PrintRange | Gets or sets the page numbers that the user has specified to be printed. | |
PrintToFile | Gets or sets a value indicating whether the printing output is sent to a file instead of a port. | |
SupportsColor | Gets a value indicating whether this printer supports color printing. | |
ToPage | Gets or sets the number of the last page to print. |
Name | Description | |
---|---|---|
CreateMeasurementGraphics | Overloaded. Returns a Graphics that contains printer information that is useful when creating a CNClrLib.Component.PrintDocument|TCnPrintDocument . | |
CreateMeasurementGraphics(Boolean) | Overloaded. Returns a Graphics that contains printer information, optionally specifying the origin at the margins. | |
CreateMeasurementGraphics(TClrPageSettings) | Overloaded. Returns a Graphics that contains printer information associated with the specified PageSettings. | |
CreateMeasurementGraphics(TClrPageSettings,Boolean) | Overloaded. Creates a Graphics associated with the specified page settings and optionally specifying the origin at the margins. | |
Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) | |
DoGetDefaultClrObject | Represents method | |
DoGetDotNetBaseComponent | Represents method | |
GetClrObject | Represents method | |
GetHdevMode | Overloaded. Creates a handle to a DEVMODE structure that corresponds to the printer settings. | |
GetHdevMode(TClrPageSettings) | Overloaded. Creates a handle to a DEVMODE structure that corresponds to the printer and the page settings specified through the pageSettings parameter. | |
GetHdevnames | Creates a handle to a DEVNAMES structure that corresponds to the printer settings. | |
GetInstalledPrinters | Gets the names of all printers installed on the computer. | |
IsDirectPrintingSupported(TClrImage) | Overloaded. Gets a value indicating whether the printer supports printing the specified image file. | |
IsDirectPrintingSupported(_Image) | Overloaded. Gets a value indicating whether the printer supports printing the specified image file. | |
IsDirectPrintingSupported(_ImageFormat) | Overloaded. Returns a value indicating whether the printer supports printing the specified image format. | |
LoadPrinterNames(TStrings) | Load the names of all installed printers on the computer. | |
RegisterEventCallBack(ClrWString,Pointer) | Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.) | |
RegisterEventSource | Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.) | |
SetHdevmode(_IntPtr) | Copies the relevant information out of the given handle and into the PrinterSettings. | |
SetHdevnames(_IntPtr) | Copies the relevant information out of the given handle and into the PrinterSettings. | |
UnRegisterEventCallBack(ClrWString,Pointer) | Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.) | |
UnRegisterEventSource | Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.) |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.