Solved

ExportToDisk in Crystal Report Error!

Posted on 2004-04-07
5
1,917 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
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 …
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

8 Experts available now in Live!

Get 1:1 Help Now