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

how to set parameters when viewing reports from a .net webpage?

Status
Not open for further replies.

lyu

Programmer
Joined
Feb 8, 2005
Messages
26
Location
US
Hi, guys,

My reports are already stored in Crystal enterprise. For some reason, now I want to create a customized website which can view reports from CE. I figured out the following code, but it will always ask users to input parameters. How can I code the parameter in code and thus supress the window? I am using c# for a .net website.

EnterpriseService enterpriseService = enterpriseSession.GetService("PSReportFactory");
Object serviceAsObject = enterpriseService.Interface;
PSReportFactory psReportFactory = (PSReportFactory)serviceAsObject;
int reportIDAsInteger= Convert.ToInt32(reportID);
ReportSource reportSource = psReportFactory.OpenReportSource(reportIDAsInteger);
crystalReportViewer.ReportSource = reportSource


Thanks a lot!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top