cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing reports in ASP.Net 4.0 web applications from CR Server 2008

Former Member
0 Kudos

Hi,

I have deployed a couple of reports on Crystal Reports Server 2008. In the Dev environment, I have an ASP.Net 4.0 web application in which I want to show the deployed reports (on CR server) using CrystalReportViewer control.

Please share the possible ways to achieve it. I know that we will have to refer the CR Server related required assemblies in ASP.Net web application. A couple of ways which I heard of are:

1) Installing and using CR Server 2008 Client components in ASP.Net web application.

2) Installing and using Crystal Reports Server SDK on Dev machines.

3) Using Crystal Reports Web services.

Please let me know if above ways are correct. Also, which is the best way to implement such scenario?

Also, where can I find the installer for Client components of Crystal Report Server?

Do we need CR server license to install client components on Dev machines?

Thanks in advance,

Manish Gupta

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

1) Installing and using CR Server 2008 Client components in ASP.Net web application.

2) Installing and using Crystal Reports Server SDK on Dev machines.

3) Using Crystal Reports Web services.

All of the above are correct. Which one you choose will depend on what the project requirements. See [Choosing the Right Business Objects SDK for Your Needs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7]

[Choose the Right SDK for the Right Task|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0070692-01a8-2a10-4797-ff0f5f73e1e1]

Now, realize that there are significant price differences when it comes to using CR SDK - free - or CRS (RAS) SDK.

Since you want to be using framework 4, you will be using VS2010 and thus you will need to download Crystal Reports for Visual Studio 2010. See the sticky thread at the top of this forum ([SP 2 for Crystal Reports for Visual Studio 2010 released!|http://forums.sdn.sap.com/thread.jspa?threadID=2085554&tstart=0] for where to / how to.

Then get familiar with the main CR for .NET landing page: http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet . Here, you will find resources such as developer help files, demos and more. Sample apps are here:

http://wiki.sdn.sap.com/wiki/x/JQBmBQ

http://wiki.sdn.sap.com/wiki/x/IgBmBQ

Note that the above samples are not compiled using VS 2010, but will work in VS 2010 just fine.

For pricing information re CRS, contact sales at 866-681-3435.

Finally, don't forget to use the search box in the top right corner of this web page. The search will bring up KBases, wikis, blogs, articles and more...

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

Thanks for the useful information, Ludek.

We have used below code to fetch reports from CRS:


ReportAppFactory reportAppFactory;
ReportClientDocument reportClientDocument;
boSessionMgr = new SessionMgr();

boEnterpriseSession = boSessionMgr.Logon("Administrator", "p@ssword", serverName, "secEnterprise");
InfoStore boInfoStore = (InfoStore)boEnterpriseSession.GetService("InfoStore");
InfoObjects boInfoObjects = boInfoStore.Query("SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND='CrystalReport' And SI_NAME Like '" + reportName + "'");

InfoObject boInfoObject = null;
if (!Equals(boInfoObjects, null) && boInfoObjects.Count > 0)
{
          boInfoObject = boInfoObjects[1];
 }

// Create an instance of ReportAppFactory from the enterpriseSession. 
EnterpriseService tempService = boEnterpriseSession.GetService("", "RASReportFactory");
reportAppFactory = (ReportAppFactory)tempService.Interface;

// Use the OpenDocument() method of ReportClientDocument with the sample report ID passed in as a parameter. @Mine_Id
reportClientDocument = reportAppFactory.OpenDocument(boInfoObject.ID, 0);

we used above code in our ASP.Net web application to access reports. For getting reference to EnterpriseSession, EnterpriseService etc classes in our code, we installed CRS 2008 client components on Dev environment.

Pls confirm if RAS SDK is same as installing and referring CRS 2008 Client component?

Also, I could not find the CRS 2008 client component download link anywhere. Pls provide the download link for CRS 2008 client component and RAS SDK.

Thanks

Manish Gupta

former_member183750
Active Contributor
0 Kudos

That looks really good.

Pls confirm if RAS SDK is same as installing and referring CRS 2008 Client component?

The two are not the same thing.

CRS 2008 Client components

From the [Crystal Reports Server 2008 V1 Installation Guide for Windows|http://help.sap.com/businessobject/product_guides/crs2008V1/en/crs_08_v1_inst_win_en.pdf]:



Crystal Reports Server 2008 V1 client applications are available for installation
through a separate installation program. You can use this stand-alone installer
to add client tools and their related components to an existing installation.

The RAS SDK is essentially the assemblies for .NET (plus other runtime, etc.)

Also, I could not find the CRS 2008 client component download link anywhere. Pls provide the download link for CRS 2008 client component and RAS SDK.

- In the 'Crystal Reports Server 2008 V1 Installation Guide for Windows" referenced above, there is a section on "Client Tool Installation". That should give you some idea / guidance.

- Ludek

Former Member
0 Kudos

Thanks Ludek,

The pdf which you shared does not have the download link of the installer.

Can you please share the download link of the installer of Client Components (of crystal reports server 2008) and RAS SDK ?

former_member183750
Active Contributor
0 Kudos

I believe that is something that should have been supplied to you with BOE. See if you can check with your SAP account manager on this.

- Ludek

Former Member
0 Kudos

Ludek, We had downloaded evaluation copy of the Crystal Reports Server 2008 for evaluation purpose.

We are planning to get the licenses after evaluating it.

We downloaded the evaluation copy from SAP website. But now I noticed that CR Server 2008 download links are no longer available on SAP website. Thats why I was asking the links from you. Please see if you can direct me to the required link.

Also, is it true that the CRS 2008 is no longer available for evaluation? I heard that it was stopped for evalution since release of Crystal Server 2011. Please confirm.

former_member183750
Active Contributor
0 Kudos

You are correct re. eval of crs 2008 being taken down as crs2011 is now available. I'd suggest contacting sales; 866-681-3435 re.crs2011

- Ludek

Answers (0)