on 12-13-2007 9:52 PM
Post Author: turz
CA Forum: Other
Is it possible to programmatically create a report using the crystal reports api? I am currently trying to figure out which reporting solution to go with and I will need the ability to create and manipulate a report from code. I thought I read somewhere that Crystal Reports Developer XI was capable of doing this, but I have not seen any forum posts or samples of this throughout my surfing. I am currently using Visual Studio 2005 to create an ASP.NET website in C#. I guess I am in need of some more information about Crystal Reports Developer XI and the Report Application Server. Thanks Chris
Post Author: Ted Ueda
CA Forum: Other
I think KBase5074668 would be a good starting point.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post Author: turz
CA Forum: Other
Thanks for the help, this was exactly what I needed. I have posted the KBase article in case anyone else searches here. If anyone knows where I could download a trial version of Crystal Reports XI Developer R2 SP2, please let me know. Thanks again, Chris KBase Article ID:5074668Article refers to:
Crystal Reports .NET
Symptom
Prior to the release of Crystal Reports XI R2 Service Pack 2,
report modification was only possible using the RAS (Report
Application Server) SDK with a RAS server or by using In-Process
RAS with the purchase of additional licensing.
Cause
As of the release of Service Pack 2 for Crystal Reports XI R2,
the RAS SDK is available to developers without the need for a RAS
server to process the reports without additional licensing. Report
modification such as changing/adding/removing database providers,
adding/removing/creating report objects, parameters, formulas,
sections etc. can be achieved by accessing the RAS SDK through the
Crystal Reports .NET SDK.
NOTE
Additional licensing is still required for the RDC report
creation API, and to use the out-of-process RAS Server (Crystal
Reports Server Embedded).
Resolution
Using Crystal Reports XI R2 Service Pack 2 and higher,
you can now access the report modification APIs without any
additional licensing by using the inprocess-RAS engine through the
Crystal Reports .NET SDK. An example of accessing the RAS SDK
through the Crystal Reports .NET SDK is as follows:
ReportDocument rpt = new ReportDocument(); rpt.Load(Request.PhysicalApplicationPath + "blankreport.rpt"); //get a reportclientdocument object from a reportdocument object ISCDReportClientDocument rcd; rcd = rpt.ReportClientDocument; //Use the ISCDReportClientdocument object to modify the report ModifyMyReport(rcd); //view the report CrystalReportViewer1.ReportSource = rpt;
Where the u201CModifyMyReport(rcd)u201D is a custom function or
routine that makes changes to the report using RAS APIs.
Known
Limitations
A report cannot be created using ReportClientDocument.New().
At the very least, a blank template report must be loaded by the
ReportDocument object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post Author: turz
CA Forum: Other
The link provided next to it threw a Java RMI error...When I searched the KBase for that ID I got the same Java RMI error. Is there some other way I can view that thread? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.