TCnPrintDialog Class
Lets users select a printer and choose which sections of the document to print from a Windows Forms application.
type TCnPrintDialog = class(TClrBaseComponent) end;
The TCnPrintDialog type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Create(TComponent) | Creates and initializes a TCnPrintDialog instance. (Overrides TClrBaseComponent.Create(TComponent).) |
![]() | Destroy | Frees the resources allocated with a TCnPrintDialog instance. (Overrides TClrBaseComponent.Destroy.) |
| Name | Description | |
|---|---|---|
![]() | AllowCurrentPage | Gets or sets a value indicating whether the Current Page option button is displayed. |
![]() | AllowPrintToFile | Gets or sets a value indicating whether the Print to file check box is enabled. |
![]() | AllowSelection | Gets or sets a value indicating whether the Selection option button is enabled. |
![]() | AllowSomePages | Gets or sets a value indicating whether the Pages option button is enabled. |
![]() | DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) |
![]() | Document | Gets or sets a value indicating the PrintDocument used to obtain PrinterSettings. |
![]() | PrinterSettings | Gets or sets the printer settings the dialog box modifies. |
![]() | PrintToFile | Gets or sets a value indicating whether the Print to file check box is selected. |
![]() | ShowHelp | Gets or sets a value indicating whether the Help button is displayed. |
![]() | ShowNetwork | Gets or sets a value indicating whether the Network button is displayed. |
![]() | UseEXDialog | Gets or sets a value indicating whether the dialog should be shown in the Windows XP style for systems running Windows XP Home Edition, Windows XP Professional, Windows Server 2003 or later. |
| Name | Description | |
|---|---|---|
![]() | Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) |
![]() | DoGetDefaultClrObject | Represents method |
![]() | DoGetDotNetBaseComponent | Represents method |
![]() | GetClrObject | Represents method |
![]() | Notification(TComponent,TOperation) | Represents method |
![]() | 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.) |
![]() | Reset | Resets all options, the last selected printer, and the page settings to their default values. |
![]() | ShowDialog | Overloaded. Runs a common dialog box with a default owner. |
![]() | ShowDialog(TWinControl) | Overloaded. Runs a common dialog box with the specified ow |
![]() | 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.) |
| Name | Description | |
|---|---|---|
![]() | OnHelpRequest | Occurs when the user clicks the Help button on a common dialog box. |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.




