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

Can I export report to plain text...

Status
Not open for further replies.

marcondes

Technical User
Feb 20, 2002
23
0
0
US
I'm creating a report with different field types, text, currency, date, etc. I need to export the report to a plain text file. Each column has to have a set width, so I have to complete with zeros or spaces the length of the field if it is shorter than required i.e.:

OrderNumber (16 digits) -> 00000000320989-3
DateAndTime (19 digits) -> 04/02/2001 14:22:24
Name (40 digits) -> (31 blank spaces)+John Cook
Price (16 digits) -> 0000000003940.35

I already got to the report part. What I need now is to export each record to a single string, something like:

00000000320989-304/02/2001 14:22:24 John Cook0000000003940.35

Please drop me a line if you have an idea.
Thanks
 
Also... forgot to mention...

the total length of the final string is 311 characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top