Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2033
  • Last Modified:

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

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
indikad
Asked:
indikad
  • 2
  • 2
1 Solution
 
mlmccCommented:
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
 
indikadAuthor Commented:
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
 
mlmccCommented:
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
 
indikadAuthor Commented:
Thanks.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now