chokka
asked on
Error on calling Embedded Resource in Crystal Report
I am writing a BarCode in my Crystal Report. This is an existing code which works in Production.
While calling the same code .. running from .Net Project Solution, I am getting an error saying that ..
Error : The report definition for report 'EBill.rdlc' has not been specified
While calling the same code .. running from .Net Project Solution, I am getting an error saying that ..
Error : The report definition for report 'EBill.rdlc' has not been specified
ReportViewer1.LocalReport.ReportEmbeddedResource = "EBill.rdlc"
ReportViewer1.LocalReport.DataSources.Clear()
ReportViewer1.LocalReport.DataSources.Add(RptDataSource)
ReportViewer1.LocalReport.Refresh()
'Initialize required parameter variables for rendering newly-created report as a tif
Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
Dim streamids As String() = Nothing
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim extension As String = Nothing
Dim deviceInfo As String
Dim bytes As Byte()
'The deviceinfo parameter specifies the settings used to render the report as an image
'X and Y resolution should be specified, as well as output format of Tif
deviceInfo = "<DeviceInfo><DpiX>200</DpiX><DpiY>200</DpiY><OutputFormat>TIFF</OutputFormat></DeviceInfo>"
'Render the report as image to a local bytes variable
bytes = ReportViewer1.LocalReport.Render("Image", deviceInfo, _
mimeType, encoding, extension, streamids, warnings)
'Use a filestream to place the report file from the bytes variable into the target
'report output file (the path being specified by the report generation sproc above)
Dim fs As New System.IO.FileStream(OutputFI.FullName, IO.FileMode.Create)
fs.Write(bytes, 0, bytes.Length)
fs.Close()
Error : The report definition for report 'EBill.rdlc' has not been specified
ASKER
My existing code uses - Microsoft.Reporting.WebFor ms.ReportV iewer. Application is a Console Application.
Still i couldnt figure it out,why this exception is poping out.
If not crystal Report , what i have to do to fix it?
Still i couldnt figure it out,why this exception is poping out.
If not crystal Report , what i have to do to fix it?
See the link I provided above.
ASKER
My existing report property doesn't have a Report Viewer. However, they have declared Report Viewer in the .Net Code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Still working on it ..
ASKER
Thanks mlmcc !!
Note: this has nothing to do with Crystal Reports.