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

Prevent loading of report on Form_load in VB.NET

Status
Not open for further replies.

infimo

Technical User
Apr 8, 2004
22
US
I don't want the report to load before I explicity issue a command for it do so.

Actually, I require to set a parameter's value in code. If the value is not set when loading the prompt comes up.

I am using Crystal Reports for Visual Studio.NET and using a CrystalReportViewer control to load the report from a ReportObject which is (I suppose) an instance of my report.

I am setting the parameter using the method myReportObject.setParameterValue().

Thanks.

Mohit
 
Hmm... probably a very silly question from me.

I just had to instantiate the ReportObject by code. And set the CrystalReportViewer's ReportSource to this ReportObject via code (after I set all the parameters of the ReportObject).

Thanks.

Infimo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top