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

Can export to XLS but NOT to CSV

Status
Not open for further replies.

jmueller

MIS
Oct 9, 2001
57
US
Hello everyone,

I have a problem that I have to believe has a simple resolution... hope someone can help me:

Quick overview of what i'm trying to do: I am trying to export "monthly statement" information to a CSV file where we would then send the CSV to a company for printing of the statements.

My crystal report has one detail line. On this detail line is the customers header info (i.e. name, address, etc) and a SUBREPORT that prints each open invoice and payments made towards the invoice for the customer. SOOO, for every invoice record, the header information gets printed again. Like such:

CUSTOMER NAME, ADDRESS, INVOICE #1, INV AMT, INV BALANCE
CUSTOMER NAME, ADDRESS, INVOICE #1, PMT AMT, INV BALANCE
CUSTOEMR NAME, ADDRESS, INVOICE #2, INV AMT, INV BALANCE

When printing to an XLS, it works fine. BUT, when printing to a CSV or anything other than an XLS, it only prints the Header info (Customer name & Address) and cuts off the invoice information. BUT IT DOES repeat the header info as many times as there are open invoices for the customer... so it's like it's seeing the invoices, just not printing them.

Anybody have any ideas?

Thank You!

Jack
 
Why are you running a subreport? This may be why you cannot export to the CSV format. You should be able to return all the data you need without the suberport. Does your table contain both invoice and payment data? You should look into doing everything in one report.
 
Thanks for replying!

To RWahlert, I didn't write the report and am not well-versed in crystal to say the least, but I imagine the sub-report was created because of the one-to-many relation. For each invoice, their can be multiple payments and/or credits applied.

Also, thanks kskid for the link. I'll try it out.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top