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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving a report as a text file

Status
Not open for further replies.

haneen97

Programmer
Dec 10, 2002
280
US
Hi,

I am taking suggestions on how to convert (save) the details of a report in text format. We need to have the report run first for the user to verify and either click a button to save the data or save the data every time the report is run.

Any ideas?

Thanks a lot

Mo


Mo
 
Consider that the version of your software, how the user is to run a report (Windows program, WEB?), and how this text file should be formatted are basic pieces of information that you didn't post.

Judging by this, I would suggest using a 3rd party viewer to handle this, as Crystal can be a bit intimidating for the unitiated.

Check out the Report Viewers:


You might also use Crystal's solution: Crystal Enterprise, or you can write code in VB or some such.

-k
 
Sorry for the missing information. We are running the reports through a windows application that is written in Delphi. We are looking for the text file to be CSV wtih " as the text qualifier. We have the report working as we like it in Java Script. Is it possible to integrate Java Script Code behaind a Crystal report?

Thanks a lot.

Mo
 
Use a UFL (User Function Library) to write to a text file.
You simply place a formula (it can be suppressed) on the report layout and because the report gets previewed, the text content specified by the formula would be written to a text file.

See list of UFLs at: under the "Other Utilities" heading.

You can also create your own UFL.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top