More info on new printing library for Delphi

21 August 2009

Back last month, Richard published a post on the new version, v4, of ExpressPrinting System for our VCL customers; or at least some sneak peeks for it. I'd quickly check that post out if I were you (his has got better images than mine will have) before reading on.

We're nearly ready to expose all this as a beta, so I thought I'd quickly list the new features that are coming. Many of these were introduced as a result of end-user feedback, and so I'd like to thank everyone who submitted suggestions to us. (For reference purposes, I’ve included the appropriate Support Center ID in parentheses where necessary.)

UPDATED August 27, 2009 to show some images of the various dialogs and user interfaces mentioned.

PDF Export (B34)

With v4, reports can be exported to PDF files. Users can customize various export, pagination, and document settings via a built-in PDF Export Options form.

PDF Export options dialog

To programmatically export a report, you need call one of the following methods:

  • The report link’s ExportToPdf method.
  • The dxPSExportToPdf, dxPSExportToPdfFile, or dxPSExportToPdfStream method as defined in the dxPSPDFExport unit.

The following code snippet demonstrates how to export to PDF using custom settings:

  ASettings: TdxPSPDFReportExportOptions;
  ASettings := TdxPSPDFReportExportOptions.Create;
    ASettings.CompressStreams := True;
    ReportLink1.ExportToPdf('C:\output.pdf', False, ASettings);

Separate Design-time and Runtime Report Link Packages (B1795)

We now provide runtime packages for report links. So, you can build your applications using only these packages.

Easily Select the Print Preview Dialog Style

Previously, in order to specify the Print Preview dialog style, you had to manually add a corresponding unit to the ‘uses’ clause and then make sure it was in effect by promoting the unit within the unit list. Shall we say it was prone to error. In v45, you merely change a single TdxPSEngineController option to select the Print Preview dialog style:

  • Standard (using standard TToolbar controls).
  • Advanced (using toolbars shipped with the ExpressBars Suite).
  • Ribbon (using Ribbon controls shipped with the ExpressBars Suite v6).

Ribbon Print Preview Dialog (AS16607)

As you just saw, in addition to both standard and advanced styles, v4 allows you to use the Ribbon-style Print Preview dialog. This gives you the opportunity to have a consistent UI in your applications that already use our Ribbon controls.

Ribbon print preview

Apply Skins and Look and Feel Styles to Built-in Dialogs (S19452)

All built-in dialogs support skins and look and feel styles. To apply skins or styles, you can use the TdxSkinController, TcxLookAndFeelController, or TdxPSEngineController components.

Built-in dialogs showing look and feel

Miscellaneous Enhancements

Of course, we've also completed a few miscellaneous improvements.

  • You now have the ability to print report footnotes similar to report titles (S19041).

Report footnotes dialog

  • TcxLabel controls can now be printed as a plain text, ignoring any paint styles and effects (AS2859).
  • You have the capability to custom paint child controls when printing their container (S32857). In v4, printing a report for a container control will automatically fire the OnCustomDraw* events of the report links created for its child controls.

FREE DevExpress Xamarin UI Controls

Deliver high-impact native mobile apps with our feature-rich Data Grid, Scheduler, Chart, TabView, Editors, and utility controls. Reserve your free copy today!
Claudio Piffer
Claudio Piffer

Hi Julian,

great! Very nice info

Thank you very much

23 August 2009
Peter Edwards
Peter Edwards

The new features are just what the doctor ordered, although I have been using WPtools to generate PDF directly from the Quantum grid for the past 4 years.

Now I woul love to try it in my apps live but I need to know what breaks in code I will need to deal with in advance - where can I find out this info Julian.

Thanks - Keep Delphi Live !

31 August 2009
Robert Rowlands
Robert Rowlands


The pdf export will be really useful to me.

31 August 2009
Igor Tyrnov
Igor Tyrnov

Many thanks!

1 September 2009

Please login or register to post comments.