Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to PDF/XLS/DOC code needed!!!!!

Status
Not open for further replies.

Sakheb

Programmer
May 22, 2003
11
IN
I have a crystal document (cyrstal 8.5) that I need to export to other formats. I need sample code that will export a crystal report to Microsoft Word/Excel or even PDF formats.

Any code is appreciated.

thanks,
Sak
 
Hi,
More info please:
Is this a published report in CE?
If so, you can export it when viewing.

How are you running the report ? The scheduler can be set to run the report and export it to several formats ( in the CMC, you can see them in the Format tab for that report).
If 'calling' it from a URL, then add the export format parameter to the URL - for instance, for Word:
Code:
[URL unfurl="true"]http://yourceserver/viewrpt.cwr?id=179&CMD=EXPORT&EXPORT_FMT=U2FWORDW:0[/URL]


[profile]
 
The report needs to be converted when a VB program is executed, which will take this crystal report and then convert it into a word document/PDF. Everything is done on the back-end. So I would need some sample VB code.

here's what I have so far:

Dim CrAppl As craxdrt.Application
Dim Crrep As craxdrt.report

set crrep = crappl.openreport "c:\report.rpt"


this will create the objects & open the report. Now I need to export this report.

thanks,
Sak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top