Solved

can I Programatically run and export to PDF a Crystal Report using c#

Posted on 2014-02-17
4
1,919 Views
Last Modified: 2014-02-20
1.  Visual Studio 2010 using c#
2.  Crystal Reports 2010 or higher


I need to do the following. If you can say that its possible - ( positively ) then I am happy for now. I just need give a quotation to a customer and then at a later stage will go to details about it .

I have pre designed Crystal reports that has a lot of formula and also the GroupSelection formula They are residing in a network folder.

I need to programatically supply the values to those formulas and then run the report ( silently-  user does not see anything ).  I need to programatically export the report to a pdf file.

I have a plan to write a program to automatically email those pdf files.

Importantly:
Can this be done ?  -  any code snippet will help so I can be confident.

less important for now :

if so what do I need ?
I have Visual Studio 2010.
Do I need to purchase Crystal Reports Developer version ?
How is the deployment done  - and what do I need to deploy ?

Thanks very much
0
Comment
Question by:indikad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 39866421
Yes.

What version of Crystal are the reports develped in?

There is a free version of Crystal available for use with VS2010
http://scn.sap.com/people/blair.wheadon/blog/2009/12/10/crystal-reports-in-visual-studio-2010

Here are 2 articles by EMoreau on how to run reports from an application

Feeding the report from a dataset
http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx

Part 2 explains how to export the report
http://www.emoreau.com/Entries/Articles/2006/10/Crystal-Reports--Part-II.aspx

If you have a full version of Crystal then you need the developer edition to get a license to distribute the assmeblies required.  However, the VS2010 version can use report files from other versions and the license is included depending on how you plan to distribute the reports.

The main restriction is you can't distribute on the web without further licensing

mlmcc
0
 

Author Comment

by:indikad
ID: 39875695
mlmcc,

Thanks for this -

This is a desktop application not web.  Therefore,

does it mean if I have Visual Studio 201 or later I don't have to purchase Crystal Developer version ?
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39875715
That is correct.


From an SAP blog

Licensing Summary
For the most part Crystal Reports for Visual Studio 2010 has the same licensing model as Crystal Reports Basic for Visual Studio 2008.  

•Internal and external client application redistribution is free.  
•Internal redistribution of server applications is free.

http://scn.sap.com/people/blair.wheadon/blog/2010/04/19/crystal-reports-for-visual-studio-2010-licensing

mlmcc
0
 

Author Comment

by:indikad
ID: 39875761
Thanks.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question