Link to home
Start Free TrialLog in
Avatar of dyarosh
dyarosh

asked on

Creating a PDF from Cyrstal Report Automatically

I have a simple report that requires special formatting that will be very easy to do in Crystal Reports.  However, what I need my user to do with the report is Fax it using our fax service.  So what I need to do is to generate the report based on criteria gathered from another system and then fax the report automatically.  The fax information is passed to the program when the report is generated.  I would like to be able to do this without having to display the report to the user and having them "Save" or "Exit" the report to trigger the faxing but if I have to I can live with it.  So basically here is what I am asking:

1. Can I create a PDF file using a Crystal Report without displaying the report to the user;
2. If I have to display the report, is there a way to disable features of Crystal such as Exporting, Saving, Printing?  Can I add a Link or Button to the "screen" to initiate the faxing which is not included as part of the report so when the report is converted to a PDF it is not included?

I already have the code I need for communicating with our Fax Service.  I just need the PDF file generated.  The application is a web app using ASP.NET (VS 2010 C#).

Any help is appreciated!
SOLUTION
Avatar of Cluskitt
Cluskitt
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dyarosh
dyarosh

ASKER

Thanks for the info on exporting.  Turns out since I posted my question, a requirement has changed that will force me now to display the report.  Can I control what gets shown with the Report like you can with MS Report Write?  What I will need is to have only a Save and Print option but with the Save option I would want to override the default Save and Export to a PDF and then call the Fax Service Web Service.  Can this be done?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dyarosh

ASKER

Thanks!
Sure thing. We use something similar on a page we have. We've disabled exporting and printing on the viewer and use our own code to convert it and manipulate it. That should be enough for you to get started, but if you need more help, don't hesitate to ask. I know crystal stumped me a lot at the beginning.