Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

I am generating a report for fee schedule. In it I have passed three parameter(classid,feetypeid,streamid) dynamically.
When I select options from class,type and stream it generates the report correctly (also showing data) but when I click on export, print or zoom factor then there is a problem. It asks to fill the parameter values.

How to overcome from this problem?

Thanks with Regards,
Amit
Posted
Updated 12-Aug-10 7:49am
v2

1 solution

When you select the options for your report, you need to save these values in variables with more global scope. The export, print, and zoom functions should then read these stored values, rather than asking the user for new input. I assume that you're calling a DialogBox to solicit the parameter values before you call the routine to generate the report. After you have collected the user input, but before you generate the report, save these values where the other functions can read them and pass them to the report generating function themselves, without requesting user input again.

Posting your code would be helpful, by the way. There are so many different ways to do this that it's impossible for us to guess what your program is structured.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900