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

when exporting to csv, how to have the header print at intervals

Status
Not open for further replies.

zencalc

IS-IT--Management
Feb 27, 2002
67
US
I'm using Crystal Decisions Knowledge Base article c2006981 to print the header only at the top of the page when exporting to csv. Which works great, by the way. But now, I also have to print a second header after every 10,000 records. The conditional formatting for detail sections doesn't work when exporting to csv, so that's out. Can anyone help on this?
thanks.
Brian
 
Try inserting a group that also holds the header info which is suppressed based on a formula like:

recordnumber/10000 <> int(recordnumber/10000)

-k
 
Sorry, I should have mentioned that the group is a faux group based on a formula, containing some sure thing to place all rows in it, as in:

if {table.field} <> &quot;I never exist&quot; then
1
else
0

-k
 
SV:

Suppressed items are exported to csv. It's part of the export limitations.

Zencalc:

The solution is to export to a format which supports suppression (like excel), then create your csv file. Alternatively, create a string formula of all your information like :

{field1}&&quot;,&quot;&{field2}&&quot;,&quot;.....etc. then export this to text. You would have to convert all your numbers using totext({numfield},(decimal places),&quot;(thousand separator)&quot;) and your date fields using totext({datefield},&quot;dd/MM/yyyy&quot;)

For more information on export limitations goto :

CR8.5

CR9

Reebo
Scotland (Sunny with a Smile)
 
yeah, that seems to be the dog of it... that almost all conditional formatting and suppression rules are negated when exporting to csv.
thanks.
Brian
 
Ahhh, thanks Reebo, it seemed to simple.

Hmmmm, fugly solution...

Can you export to a text file and code the CSV delimiters and carriage returns? The documenmt says that suppression is part of the export for a text export.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top