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!

.NET - passing in parameters from a form

Status
Not open for further replies.

esmithbda

IS-IT--Management
Jun 10, 2003
304
US
I am using ASP.NET (VB) and have PageA with some input fields. I want to submit that page and have it spawn a new window with PageB (the reports), passing those parameters to that window, and have it run the report.

The logistics are in place, but the spawned window continues to ask for the parameters anyway, and then requiring a postback on itself - then it works. But I am already giving it the parameters.

There are pages out there that I can find that discuss how to go into the Data.Report.Parameters section in the settings and then in there add to that collection, which then puts tags in the XML for parameters, but those all are ControlParameters - it appears that there are also ways to do FormParameters that are perhaps what I want - but I can't find documentation on it.

Any suggestions as to how to pass parameters to the CrystalReportSource from another page so that it won't prompt on its own page for the parameters?
 
The point I am at now is that in the VB code page for the report itself (that the form data is getting passed into), in the Page_Load sub, I have it calling the CrystalReportSource1.ReportDocument.SetParameterValue("@DateTo", "1/1/06") as an example here, and that way I can then take in Form data as usual in there and put that in the spot where the date is there, as well as any error handling or extra formatting in there as well.

But now I'm getting access denied errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top