XtremeDocumentStudio Delphi
Next-generation multi-format document-processing component suite for Delphi/C++Builder developers
Compatibility
VCL - FireMonkey - Delphi - C++Builder

Multi-format document & image printing component for Delphi/C++Builder - DOCX, PDF, BMP, PNG, TIFF, JPEG, WMF, EMF

Learn to use document printer component from Gnostice XtremeDocumentStudio Delphi.
By V. Subhash

Gnostice XtremeDocumentStudio Delphi is the next-generation multi-format document-processing component suite for Delphi/C++Builder developers. Currently, it supports viewing, printing, and converting PDF, DOCX, BMP, JPEG, PNG, WMF, EMF, and single-page and multi-page TIFF.

XtremeDocumentStudio Delphi Components

XtremeDocumentStudio provides the following components for processing documents:

Print Multiple Formats With A Single VCL Component

To begin learning how to use the document printer component, try these steps:

  1. Start your Delphi IDE.
  2. Create a new VCL Forms project.
  3. Drop the following components on the form.
    • TgtDocumentPrinter
    • TButton
    • OpenDialog
    A Delphi project to create a multi-format document/image printing application using XtremeDocumentStudio Delphi
    A Delphi project to create a multi-format document/image printing application using XtremeDocumentStudio Delphi
  4. Double-click the button to add the following event handler to the button's click event.
    begin
    if OpenDialog1.Execute then begin
      try
        gtDocumentPrinter1.PrintManager.PrinterIndex := 0;
        gtDocumentPrinter1.AutoRotate := true;
        gtDocumentPrinter1.PrintManager.Title := OpenDialog1.FileName;
        gtDocumentPrinter1.PageScaling := psOriginal;
        gtDocumentPrinter1.PrintDocument(OpenDialog1.FileName);
      except on Err:Exception do
        ShowMessage(Err.Message);
      end;
    end;
    
  5. Compile and run the project.
  6. Click the button on the form to select a document or image for printing. If the first printer is a "soft printer", then its driver will prompt for you to enter a file name for saving the print output.
    A multi-format document/image printing application built with XtremeDocumentStudio Delphi
    A multi-format document/image printing application built with XtremeDocumentStudio Delphi
    (Click to see the image in full)

---o0O0o---

Our .NET Developer Tools
XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers.

PDFOne .NET

A .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
XtremeDocumentStudio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

Our Java developer tools
XtremeDocumentStudio (for Java)

Multi-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
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

Privacy | Legal | Feedback | Newsletter | Blog | Resellers © 2002-2017 Gnostice Information Technologies Private Limited. All rights reserved.