Hi, I want to save crystal report as PDF when a user view that report.. so on my page load event i created ExportToDisk(ExportFormatType. 1. 2. 3. 4. 5. public virtual void ExportToDisk (ExportFormatType formatType, string fileName);. The above function takes two. ExportToDisk. ExportToDisk is the simplest of export command. It takes 2 parameters. Export format type and File Name.

Author: Shakajas Akijinn
Country: Estonia
Language: English (Spanish)
Genre: Relationship
Published (Last): 23 March 2008
Pages: 13
PDF File Size: 11.89 Mb
ePub File Size: 1.45 Mb
ISBN: 751-2-59281-439-4
Downloads: 22952
Price: Free* [*Free Regsitration Required]
Uploader: Kagamuro

This export options found in the namespace CrystalDecisions.

Crystal Reports: ReportDocument.ExportToDisk() takes too long..

I have a C application that generates a hundreds of different reports at a time using Crystal Reports templates and saves them to a network share using the ReportDocumnet. I agree to the Privacy Policy. You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. The following Destination are available to the report. Please read and accept our website Terms and Privacy Policy to post a comment.

How to Export Crystal Report to PDF in C# and

Crystal Reports Load Time. Sign up using Email and Password.

This site uses Akismet to reduce spam. Awaiting for any reply. Treat my content as plain text, not as HTML. NET takes about 5 seconds to export this report.

Below is my code: As per your post, I found that you have VB6 code for export to Excel. Existing Members Sign in to your account. The point where it gets stuck is the ExportToDisk method where it exports to excel and saves the report to the file system.


As a guest, you can read any forum posting.

The database query runs in like 0. Post as a guest Name. I do the same thing in. Do you need your password? The time crytal is Please Sign up or sign in to vote. Hi all experts, I am currently working on a project of converting a VB6 utility to.

C# code to export to pdf using Crystal Report

Then I would get into Business Objects support forum and try and get crystao answer from them. This parameter is explained below. While this works great I’ve noticed that it sometimes leaves a copy of the completed report in the root of the drive that the program is residing on.

This esporttodisk gives us the most flexibility when comes to exporting the report. It does not do this all the time which is confusing. Crystal Report Viewer control is a.

Run the project, click on Export button and you will see that the report is exported to C: This does not sound like a C problem but a CR issue. Nayan Ambaliya Jun This function has four parameters. It takes 2 parameters. Other DestinationOptions are Microsoft Mail and exchangefolder.

It is kind of a expporttodisk task on a windows server. Please guide me in this direction on what can I do to improve.

How to Export Crystal Report to PDF in C#, ASP.NET

I have developed a application that reads the rpt files, convert it into PDF format and exports the PDF file onto network folder. ExportFormatOptions Gets or sets the options for the format options of the export for the report. The system detected a possible attempt to compromise security. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.


Provide an answer or move on to the next question. This parameter is explained later in the tutorial. The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Assign the name of the file to this property. NET, please see the book discussion forum for that book. Crystal Reports in Asp. You can add it to your windows form or to web form so that you can display the report to the user.

The following Destinations are available to the report. Read the question carefully. If you have installed 32bit version of crystal report, then go and change platform target using the following steps. Available format types are listed in the previous section.