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!

Crystal Report on Web Reprompts for Parameters

Status
Not open for further replies.

klgrube

Programmer
May 29, 2002
28
US
Hi!

Sorry, but I can't seem to get any help with this on the Crystal Reports web site, so I'm hoping someone here can help.

I have a Web Page which gathers parameters for a Crystal Report, stores them in the web session, and then does a redirect to a page that has on it two objects only: a Crystal Report (not an embedded report, but an external
stored report) and a Crystal Viewer control.

I'm setting the parameters in the Page Init, as opposed to the Page Load, and the report runts well, with one exception. I'm using the activex printer control, so when users hit the viewer control's print button, it brings up the standard printer dialogue and lets them choose the printer. When they print the entire report, everything works well, However, occasionally when they choose to print one or two pages in the middle of the report, they are repropmted for the report's parameters! Also, sometimes, when they 'go to' specific pages, rather than just paging forward and back, they are reprompted
for parameters.

There's a whole discussion about page persistence in the Crystal Reports 10 'Additional' SDK, but it's WAAAYY over my head. Is that what I'm missing here? All I want to do is stop the viewer from reprompting for values and have it just display or print the correct information for that page! What do I have to code in order to get this to work correctly, and why should I have to code anything at all? How dumb is it that the viewer is so flawed that it won't really work the way it's supposed to?

Any help or guidance would be greatly appreciated.

Thanks!
Karen Grube
klgrube@yahoo.com

 
Okay, so I turned custom error messages 'off' in WebConfig. Now I actually see an error message that might mean something to someone:

"Get page number for group failed"

This happens when I'm choosing to display a particular page. What I did was run the report, use the group tree to move to a particular group, and then changed my mind and typed in a page number in the 'go to' box in the crystal viewer.

The interesting thing is that this doesn't happen on my local machine where I'm doing the development, so it may have something to do with how IIS is configured on the server. I'm running Sharepoint on the same server, and had to make some special changes to the webconfig file in order to enable session state when asp.net is running on the same server as sharepoint.

All I'm getting at is that this may have something to do with the web config file or how IIS is configured rather than anything I'm doing or not doing with persisting the pages, but I'm not sure.

Any suggestions or ideas would be greatly appreciated.

Thanks!
Karen
klgrube@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top