Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Crystal Report exception -- Missing parameters Post Reply Post New Topic
Author Message
sarvesh
Newbie
Newbie
Avatar

Joined: 11 Dec 2008
Location: India
Online Status: Offline
Posts: 2
Quote sarvesh Replybullet Topic: Crystal Report exception -- Missing parameters
    Posted: 11 Dec 2008 at 3:42am

at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName)

at CarrerVidyaUI.Resume.OnePageExport.Page_Load(Object sender, EventArgs e) in D:\cv\CareerVidyaUI\ResumeCenter\OnePageExport.aspx.cs:line 88

what is this exception?
Sarvesh
IP IP Logged
Imtiaz Ahmed
Newbie
Newbie
Avatar

Joined: 11 May 2009
Location: India
Online Status: Offline
Posts: 6
Quote Imtiaz Ahmed Replybullet Posted: 12 May 2009 at 12:00am
Hi,
 
The below code shows how to pass the paramater and export it to the PDF format...
This message is appering when you try to export report and having parameters in that report...
Passing the paramter in below format will export the report without any errors...

' The Below code passes parameter to Crystal Report

Dim discretevalue As ParameterDiscreteValue

Dim values As ParameterValues

discretevalue = New ParameterDiscreteValue

discretevalue.Value = "Imtiaz" ' Assign parameter

values = New ParameterValues

values.Add(discretevalue)

crReportDocument.DataDefinition.ParameterFields(0).ApplyCurrentValues(values)

' The below code converst into PDF file format

Dim oStream As New MemoryStream

oStream = crReportDocument.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)

Response.Clear()

Response.Buffer = True

Response.ContentType = "application/pdf"

Response.BinaryWrite(oStream.ToArray())

 
 
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.