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

Crystal 9 Report Viewer - how to trap error

Status
Not open for further replies.

BCarol

Technical User
Feb 14, 2002
23
AU
Sometimes the Report viewer gives this error:

Crystal Report Viewer
-----------------------------------------
Failed to export the report.
Error formatting the page.


I guess this is an internal error message. How can one trap for this error and give another message?

I tried code in the Error event of the Crystal viewer.

But it never got triggered. Is there a way to trap for this error?
 
Hi,
I have seen that error when the printer defined for that report is not able to handle it ( one cause can be if a Page Footer is supressed)...What export format are you attempting.

The Crystal Report Viewer is not open to modification ( mostly) , so no additional trapping seems possible.

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
One way to see more about what is going on is to run the report in the designer with the same parameters/conditions as you have done in the viewer.

I typically find that the issue you're experiencing is printer/page formatting/data related.

One item to check is the KEEP TOGETHER option at both the group and section levels.

-- Jason
"It's Just Ones and Zeros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top