?
Solved

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

Posted on 2014-02-17
4
Medium Priority
?
1,976 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 2000 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

How to Create Failover DNS Record Sets in Route 53

Route 53 has the ability to easily configure DNS record sets specifically for failover scenarios. These failover record sets can be configured to failover to full-blown deployments in other regions or to a static HTML page that informs your customers of the issue.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

718 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