Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

View reports on Html/ Rtf/Excel/Text/ Printer Format while clicking corresponding button

edited February 2005 in General

I'm working on Reports for Delphi7 using Report Builder Demo version.
In my report there is 5 Button options, PDF format, HTML, RTF, EXCEL,TEXT
and PRINTER.If I click the any of the button I want to see my reports in
that format, if printer
directly to printer.

PDF Format is working correcly. I am given the below code for that.
___________________________________________________________
var
F: String;

F := 'C:\test.pdf';
Rpt.AllowPrintToFile := True;
Rpt.TextFileName := F;
Rpt.DeviceName := 'PDFFile';
Rpt.ShowPrintDialog := False;
Rpt.Print;
ShellExecute(Self.Handle, 'open', @F[1], '', '', 0);
____________________________________________________________

How can i open the reports in HTML, RTF, EXCEL, TEXT and PRINTER format
using code
Please give me your valuable

Comments

  • edited February 2005
    "Bijulal" wrote in message news:420d75fd@dm500....

    Hi,

    I believe you'll need a 3rd-party report export product for generating reports
    to HTML, RTF, Excel... Please do have a look at the eDocEngine. It provides
    export options to the formats you mention here and more. The eDocEngine help
    file also contains samples of exporting reports programmatically.

    For the full feature trial version and documentation, please follow this link:
    http://www.gnostice.com/edocdownload.asp

    For a quick EXE demo, please follow this link:
    http://www.gnostice.com/download/v200p/edocpdfv2_demo.zip

    --
    Girish Patil
    Gnostice Information Technologies www.gnostice.com
    ---------------------------------------------------------------------
    Gnostice eDocEngine (http://www.gnostice.com/edoc_engine.asp) -
    Electronic document creation, Report Export, PDF eForms creation...

    Gnostice PDFtoolkit (http://www.gnostice.com/pdftoolkit.asp) -
    View, Print, Convert, Modify, Enhance PDF docs, process PDF eForms...
    ---------------------------------------------------------------------
  • edited February 2005
    Hi,

    Girish is correct. ReportBuilder only natively exports reports to Archive,
    Text, and PDF. (The server edition includes a XHTML export device). For
    any other formats you will need to aquire a third party tool.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.