TdxPrintDialog.Execute Method
Displays the Print dialog.
Declaration
function Execute: Boolean;
Returns
Type | Description |
---|---|
Boolean |
|
Remarks
Call the Execute
function to display the custom Print dialog.
Unlike the Print dialog available for the TdxComponentPrinter component, the displayed Print dialog has no built-in print functionality. For example, the Page Setup… button is disabled if the OnPageSetup event is not handled.
Code Example: Display the Print Dialog and Print Content
The following code example displays the Print dialog and prints control content using the current report link:
uses
dxPSCore, // Declares the TdxComponentPrinter class
dxPrnDlg; // Declares the TdxPrintDialog component
// ...
procedure TMyForm.dxSpreadSheetShowPrintFormExecute(Sender: TObject);
begin
if dxPrintDialog1.Execute() then // Displays the Print dialog
dxComponentPrinter1.Print(False, nil); // Prints content using the current report link
end;
See Also