Developer Tools
|
Office Productivity Applications
|
Platform-Agnostic APIs
|
Home | Online Demos | Downloads | Buy Now | Support | About Us | News | Working Together | Contact Us
The ExpressPrinting System from DevExpress allows you to output the contents of several VCL controls to paper with a great degree of control over print attributes such as font, color, headers, and footers.
eDocEngine can leverage the capabilities of ExpressPrinting System to export the contents of VCL to formats such as PDF, RTF, EMF, BMP, JPEG, etc. For this purpose, eDocEngine provides the TgtXPressPrntInterface interface component.
To make it work on an application built with ExpressPrinting System, an instance of this interface component needs to be paired up with an eDocEngine document-creation engine component. For example, to export the print output of a string grid to a PDF document, a TgtXPressPrntInterface instance needs to be paired with a TgtPDFEngine instance on the same form as a TdxComponentPrinter. Let us see an example.
// Populate the grid procedure TForm1.Button1Click(Sender: TObject); begin With StringGrid1 do begin Cells[1,1] := '1, 1'; Cells[2,2] := '2, 2'; Cells[3,3] := '3, 3'; end; end; // Print the grid content using ExpressPrinting System // and export the print output to PDF and RTF using // eDocEngine procedure TForm1.Button2Click(Sender: TObject); var BasedxReportLink1: TBasedxReportLink; begin // Connect the export interface components with // engine components gtXPressPrntInterface1.Engine := gtPDFEngine1; gtXPressPrntInterface2.Engine := gtRTFEngine1; // Specify the file names for PDF and RTF output gtPDFEngine1.FileName := 'eDoc_DevExpress_Demo.pdf'; gtRTFEngine1.FileName := 'eDoc_DevExpress_Demo.rtf'; // Disable engine dialogs gtPDFEngine1.Preferences.ShowSetupDialog := false; gtRTFEngine1.Preferences.ShowSetupDialog := false; // Specify controls whose contents need to be printed BasedxReportLink1 := dxComponentPrinter1.AddLink(StringGrid1); // Export print output to PDF and RTF gtXPressPrntInterface1.RenderDocument(dxComponentPrinter1, BasedxReportLink1); gtXPressPrntInterface2.RenderDocument(dxComponentPrinter1, BasedxReportLink1); end;
---o0O0o---
Our .NET Developer Tools | |
---|---|
![]() Gnostice Document Studio .NETMulti-format document-processing component suite for .NET developers. |
![]() PDFOne .NETA .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications. |
Our Delphi/C++Builder developer tools | |
---|---|
![]() Gnostice Document Studio DelphiMulti-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms. |
![]() eDocEngine VCLA Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools. |
![]() PDFtoolkit VCLA Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents. |
Our Java developer tools | |
---|---|
![]() Gnostice Document Studio JavaMulti-format document-processing component suite for Java developers. |
![]() PDFOne (for Java)A Java PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java applications. |
Our Platform-Agnostic Cloud and On-Premises APIs | |
---|---|
![]() StarDocsCloud-hosted and On-Premises REST-based document-processing and document-viewing APIs |
Privacy | Legal | Feedback | Newsletter | Blog | Resellers | © 2002-2025 Gnostice Information Technologies Private Limited. All rights reserved. |