TCnPrintDialog Class

Lets users select a printer and choose which sections of the document to print from a Windows Forms application.

Namespace: CNClrLib.Component.PrintDialog
TComponent
  CNClrLib.Control.Base.TClrBaseComponent
    CNClrLib.Component.PrintDialog.TCnPrintDialog
type
 TCnPrintDialog = class(TClrBaseComponent)
 end;

The TCnPrintDialog type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates and initializes a TCnPrintDialog instance. (Overrides TClrBaseComponent.Create(TComponent).)

Destroy

Frees the resources allocated with a TCnPrintDialog instance. (Overrides TClrBaseComponent.Destroy.)

Top
Show:
 NameDescription
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.

Top
Show:
 NameDescription
Dispose

Releases the resources used by the Component. (Inherited from TClrBaseComponent.)

DoGetDefaultClrObject

Represents method DoGetDefaultClrObject. (Inherited from TClrBaseComponent.)

DoGetDotNetBaseComponent

Represents method DoGetDotNetBaseComponent. (Overrides TClrBaseComponent.DoGetDotNetBaseComponent.)

GetClrObject

Represents method GetClrObject. (Inherited from TClrBaseComponent.)

Notification(TComponent,TOperation)

Represents method Notification(TComponent,TOperation).

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.)

Top
Show:
 NameDescription
OnHelpRequest

Occurs when the user clicks the Help button on a common dialog box.

Top

See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.