Solved

ExportToDisk in Crystal Report Error!

Posted on 2004-04-07
5
1,927 Views
Last Modified: 2009-04-23
Hi,
I want to export my report into pdf, word, etc...
My Application is web-based

The command I use is

Protected WithEvents report As CrystalDecisions.CrystalReports.Engine.ReportClass

report = New rptTest

report.ExportToDisk(ExportFormatType.PortableDocFormat, "c:\test.PDF")

Error description is :
Missing parameter field current value.

Can U help me!
Thank you!

0
Comment
Question by:bufalobk
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
Dabas earned 125 total points
ID: 10780571
Check that you have CrystalDecisions.Shared as a reference.

Then change your code like this:

       report.ExportToDisk(report.ExportOptions.ExportFormatType.PortableDocFormat, "c:\test.PDF")
0
 
LVL 1

Author Comment

by:bufalobk
ID: 10781642
I have found the error.
It's not "CrystalDecisions.Shared as a reference" . I included "Import CrystalDecisions.Shared" line at the beginning of code.

The reason is I pass parameter values to the CrystalReportViewer to display data intead of passing to report document.
Parameter must be passed value to report document before export into disk.

Thank you anyway!
0
 
LVL 27

Expert Comment

by:Dabas
ID: 10781875
bufalobk:
Your welcome.
If you included Import CrystalDecisons.Shared then it means you already had it as a reference.
Since it is obvious that I guided you to the correct solution, the acceptance of my answer will be appreciated.

Dabas
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

18 Experts available now in Live!

Get 1:1 Help Now