Shajee_.net
04-18-04, 02:12 AM
Hi!
I am using crystal reports 9.1 in my asp . net application. Now when i am adding data to the report file(say CrystalReport1.rpt) by push method i.e through the crystal report designer and then exporting the file into pdf format it's working fine, the report is being saved as a pdf file into the specied location.
The other method i am using for generating the report is giving data to the report (crystalreport1.rpt) dynamically ,pull method i.e based upon certain conditions a sql query fetches data and feeds it into the report. so far so good ev'thing's working fine and CrystalReportViewer flawlesly generatess the report.
The problem arises when i am exporting this report into a pdf file. Upon hitting the Export Button an error is reported
The folowing error is shown
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnExcept ion: Logon failed.
Source Error:
Line 126: report.ExportOptions.DestinationOptions = DiskOpts
Line 127: report.Refresh()
Line 128: report.Export()
Line 129:
Line 130: 'Catch ex As CrystalDecisions.CrystalReports.Engine.EngineExcep tion
Stack Trace:
[LogOnException: Logon failed.]
.F(String , EngineExceptionErrorID
) +506
.A(Int16 , Int32 ) +537
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestContext reqContext) +469
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export() +67
HSSTimeSheet.ReportTimeSheet.Button1_Click(Object sender, EventArgs e) in C:\Hanu Software Solutions\HSSTimeSheet\ReportTimeSheet.aspx.vb:128
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
I am using crystal reports 9.1 in my asp . net application. Now when i am adding data to the report file(say CrystalReport1.rpt) by push method i.e through the crystal report designer and then exporting the file into pdf format it's working fine, the report is being saved as a pdf file into the specied location.
The other method i am using for generating the report is giving data to the report (crystalreport1.rpt) dynamically ,pull method i.e based upon certain conditions a sql query fetches data and feeds it into the report. so far so good ev'thing's working fine and CrystalReportViewer flawlesly generatess the report.
The problem arises when i am exporting this report into a pdf file. Upon hitting the Export Button an error is reported
The folowing error is shown
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnExcept ion: Logon failed.
Source Error:
Line 126: report.ExportOptions.DestinationOptions = DiskOpts
Line 127: report.Refresh()
Line 128: report.Export()
Line 129:
Line 130: 'Catch ex As CrystalDecisions.CrystalReports.Engine.EngineExcep tion
Stack Trace:
[LogOnException: Logon failed.]
.F(String , EngineExceptionErrorID
) +506
.A(Int16 , Int32 ) +537
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestContext reqContext) +469
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export() +67
HSSTimeSheet.ReportTimeSheet.Button1_Click(Object sender, EventArgs e) in C:\Hanu Software Solutions\HSSTimeSheet\ReportTimeSheet.aspx.vb:128
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573