Solved

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

Posted on 2014-02-17
4
1,864 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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