Skip to Content
0
Former Member
May 17, 2010 at 11:39 AM

Crystal Report 2008 export to text problem

50 Views

Hello,

I am using Crystal Reports 2008 for generating reports in our WPF application. In this application, we are exporting the report to txt file on a button click. Now the application contains a form called u2018Print Manageru2019, through which the user can print the exported report(text files). Now the issue, when we try to the any of the exported report file through the application, the printer leaves alternate blank pages. The printer used in this case is DOT MATRIX EPSON LQ-1150II ESC/P2. We even tried printing the text file on HP Laser jet 4600, but the same issue is faced.

Also, please note that when I try to read the exported txt file, a formfeed(u2018\fu2019 page break) character can be seen at the place where the printer leaves a blank page. Hence, my concern is, Is there any property of crystal report that I am missing on or is this a printer driver issue? But if it would have been a driver issue, then changing the printer might have solved the issue.

I also tried doing u2018Keep Togetheru2019 property = false of all the sections of the report. Also, I found that the u2018New Page Afteru2019 property = true and disabled for the u2018Page Footeru2019 section. So I set u2018New Page Afteru2019 property = false programmatically as

rdTest.ReportDefinition.Sections["Section5"].SectionFormat.EnableNewPageAfter = false;

but no luck.

If anyone has faced similar problem or have any clues, please help!

Any kind of help in solving this issue will be highly appreciated.

Thanks in anticipation!