Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.
The TCnPrintDocument type exposes the following members.
Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.)
Gets or sets page settings that are used as defaults for all pages to be printed.
Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
Gets or sets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.
Gets or sets the print controller that guides the printing process.
Gets the .Net PrintDocument object as interface.
Gets or sets the printer that prints the document.
Releases the resources used by the Component. (Inherited from TClrBaseComponent.)
Starts the document's printing process.
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.)
Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.)
Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.)
Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.)
Occurs when the Print() method is called and before the first page of the document prints.
Occurs when the last page of the document has printed.
Occurs when the output to print for the current page is needed.
Occurs immediately before each OnPrintPage event.
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.