Publishing Crystal Report using Visual Studio 2010 - crystal-reports

I'm using Visual studio 2010 and want to deliver a crystal report as a web service. I don't see the feature to right-click a .rpt file and publish as web service in VS2010. Any help will be highly appreciated !!

1 create a WebService project
2 add references to CR (also add or create your report .rpt File)
3 If you have in parameters set them.
4 Code the logic to render the report into your WebService (database access if needed).
5 Use report.ExportTostream(type of file you want) as return data (depending on the result you want your web service to have, you may have to wrap the data into an HTTP Response or something alike.)
see : http://msdn.microsoft.com/en-us/library/ms182557.aspx and
http://forums.asp.net/t/1597083.aspx/1 as references

Related

Report generation in web applications

As part of my web application, i am using iReport tool to generate reports and its working fine but my doubt is, is it possible to generate xls type report in browser like pdf (we can show the pdf file in the browser)? Means I need to show reports in xls file or word document in the client machine, is it possible? Can anybody clear my doubt?
Although it is a bit late, I'll try to give a generic answer
you can fetch your data to your local Jasper Reports server via JSON.
There is a sample of JsonDataSource in the 4.5.0 version of jasperreports at *\demo\samples\jsondatasource
to run report and receive output pdf, etc. you can use REST API for Jasper Server
then you send output to end user

How to export report files from Crystal Enterprise 10 server?

I am attempting to move some Crystal Reports from a legacy server (Crystal Enterprise 10) to their new home (SAP Business Objects XI v12). The former person in this position has multiple copies of reports everywhere with no versioning or documentation, so I decided to pull them all from the sources & start fresh.
In BO XI v12, to export a report file, I can select objects and choose "Send to --> File", which allows me to export the .rpt file.
However, in Crystal Enterprise 10, I can't discern any way to export the reports to a .rpt file. There doesn't seem to be anything in the CE 10 documentation referring to .rpt file export, either, so I'm thinking a philosophical shift occurred that I'm missing.
Any insight is appreciated; thanks!
To move objects and their instances (recurring or otherwise), you should use the Migration Wizard. It will move large numbers of objects between servers and preserve their IDs.
You will need to do a client (i.e. not the services) installation of BusinessObjects Enterprise (BOE) to get this tool.
If you are just trying to publish a report to BOE, use the File | Save as... feature and choose 'Enterprise' from the vertical list. The report's saved data will be discarded.
** edit **
To get a copy of the RPT w/ data to your workstation, there are a number of options:
schedule the report to a FTP location, to an 'unmanaged disk' (must be accessible by the Job Server), or email it to yourself
view the report "on demand' or a recently-scheduled instance, then use the Export button on the Viewer control to download the RPT w/ saved data. You will need to have the 'Download files associated with the report' right, however.
From the enterprise server you just need to render the report and export it from there. It should have an option to save it in crystal report format. Otherwise you can download it from the object explorer.

How to convert SSRS 2008 Server reports to SSRS 2008 Client Reports

I have a large SSRS 2008 Server Report Project (more than 200 reports). Currently my company strategy has been changed and we want to convert these server reports to client reports.
All of the Server reports use stored procedures (or in some cases from the SQL functions)
All of them work properly andthere is no problem
Beause of project scale it is not a good idea to create all of server reports in client again.
So I want to check how to convert SSRS 2008 Server reports to SSRS 2008 Client reports (.rdl to .rdlc).
Note : I know that client reports use Dataset and I have to create Dataset. I'm also looking for a way to generate these dataset too. But for now I'm just looking for a way to convert .RDL files to .RDLC files.
If there are any application which can convert RDL XML to RDLC XML let me know.
Any help appreciated.
After a while I foud this Converting RDL and RDLC Files helpfull
1- Rename the .rdl file to use the .rdlc file extension.
2- In Visual Studio 2008, open the solution or project that will contain the report.
3- Create or add the dataset that defines the data you want to use to your projector solution. For more information, see Creating Data Sources for a Report.
4- On the Project menu, click Add Existing Item and then select the .rdlc file that you created in the first step.
5- In the project, open the form or Web page that will contain the report.

Crystal report file does not get deployed to server in ASP.NET MVC

I am using a crystal reports through crystal report viewer server side control in a webform.
I am using a webform because the crystal report viewer provides an easy way to export to PDF and to Excel.
My problem is that when I deploy to the server, the crystal report .rpt file does not get copied to the target folder.
My solution structure looks like this:
Solution
|-Content
|-Controllers
|-Models
|-Views
|-etc...
|-Reports
|-Default.aspx
|-Report.rpt
On the server, the Report.rpt file is missing after I publish.
If you right click on the Report.rpt file in Solution explorer and view the properties, make sure that the "Build Action" is set to Content. I believe by default it is set to Embedded resource.

Can you start Crystal Reports 10 in read only mode so users can't create or change a report?

I'm in an environment where I have created reports in CrystalReports 10 and only want my users to view the report from an external application. The application is already set up to open the report with crystal, but I don't want my users to be able create or change the report. I can't seem to find a command line option to do this. Is there a runtime only version of Crystal?
embed crviewer and craxdrt components in your app (delivered with CR developer's edition, free to distribute) so that you'll be able to view reports without modifying them. Basic manipulations (zoom, search, export to pdf, display/hide details or groups) can still be done.
If you must launch this viewer from a command line, I'd advise you to embed it in an office document/file and manage it through VBA. You could for example launch the runtime version of Access (free to distribute) that will contain one generic form for Crystal Reports display.
There are Crystal Reports viewer components which you can use in your projects. They are coming with the Crystal Reports Developer editions and you can use them in almost every programming language. There you can define the report as view only if you want.
Go to SAP.com and search for "Crystal Reports Viewer". It may or may not do what you want.
Also take a look at "Crystal Reports Server". CRS XI is a nice reporting portal with many useful server-side features. Schedule reports to run and auto-publish. Generate PDF or Excel output. Limit access to reports (or groups of reports) by specific users, etc. But for your application you can use HTTP access within your application to the published results. This is a good solution for example when you have a large number of users viewing the same reports.
What about marking the file as read-only? If the viewer opiton isn't open to you.