Print Page | Close Window

Error : Missing parameter field current value

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1408
Printed Date: 18 May 2024 at 9:19pm


Topic: Error : Missing parameter field current value
Posted By: yasinirshad
Subject: Error : Missing parameter field current value
Date Posted: 29 Sep 2007 at 5:51am
Hi.
Please help me resolve this error."Missing parameter field current value". Error here crReportDocument.Export()
Code:
Private Sub Btn_Export_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_Export.Click
Dim exportFileName As String = "iCalls_CrystalReport_Department.rpt"
Dim exportPath As String = "D:\SampleCrystalReports\iCalls_Export\test1.pdf"
Dim crExportOptions As ExportOptions
Dim crDestOptions As New DiskFileDestinationOptions
crDestOptions.DiskFileName = exportPath
crExportOptions = crReportDocument.ExportOptions
crExportOptions.DestinationOptions = crDestOptions
crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
crReportDocument.Export()
End Sub
Moreover this code will Export - from where i can Print. But Can anyone pls help me with the code in vb.net from where i can 'Print' directly from the local Printer.


-------------
Thanks,
Yasin.



Print Page | Close Window