Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ExportToDisk in Crystal Report Error!

Posted on 2004-04-07
5
Medium Priority
?
2,029 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
[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
5 Comments
 
LVL 27

Accepted Solution

by:
Dabas earned 500 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Simple Linear Regression
Introduction to Processes

721 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