Link to home
Start Free TrialLog in
Avatar of bufalobk
bufalobk

asked on

ExportToDisk in Crystal Report Error!

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!

ASKER CERTIFIED SOLUTION
Avatar of Dabas
Dabas
Flag of Australia 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 bufalobk
bufalobk

ASKER

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!
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