Solved

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

Posted on 2014-02-17
4
1,673 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
  • 2
  • 2
4 Comments
 
LVL 100

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 100

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now