on 2008 Jul 10 7:41 PM
Hi,
I have gone through several sample application and seen two ways the binding has taken place...
one is getting the ReportClientDocument object throught the RASReportFactory as follows:
EnterpriseService tempService = enterpriseSession.GetService("", "RASReportFactory");
ReportAppFactory reportAppFactory = (ReportAppFactory)tempService.Interface;
ReportClientDocument reportClientDocument = reportAppFactory.OpenDocument(infoObject.ID, 0);
CrystalReportViewer1.ReportSource = reportClientDocument ;
The other way I have come across is assigning the infoObject retrieved based on the query to the reportViewer control:
Report report = (Report)infoObject;
CrystalReportViewer1.EnterpriseLogon = enterpriseSession;
CrystalReportViewer1.ReportSource = report;
My question is:
How does the two binding ways different?
Is the second method not using the RASReportfactory to retrieve the report from BOE?
Which one is the best approach going forward?
Thanks
Kajal
The first one is using RAS to run and render the report, the second method is using the Page Server to run and render the report.
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am confused because on msdn help topic "Binding to InfoObject Cast as Report".
its stated that one of the drawback of the second method is that "Not as fast a method for displaying reports as when the RAS server or Page Server is used instead".
Moreover if we need to pass parameter to the report at run-time then we have to use the second method using the following code:
CrystalReportViewer1.ParameterFieldInfo = parameterFields;
CrystalReportViewer1.EnterpriseLogon = enterpriseSession;
CrystalReportViewer1.ReportSource = (Report)infoObject;
Is there a way to do the same with RAS Serve method to pass parameter to the report.
Thanks
Kajal
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.