Click here to Skip to main content
16,017,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While taking printout using Crystal report following error is showing.

[COMException (0x800002f4):
Failed to open the connection.
Correctiont {E04D23E8-6E47-46E6-83C5-72D7F9F80F21}.rpt
Details: [Database Vendor Code: 17 ]]
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext) +375

[InternalException:
Failed to open the connection.
Correctiont {E04D23E8-6E47-46E6-83C5-72D7F9F80F21}.rpt
Details: [Database Vendor Code: 17 ]]
CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +901
CrystalDecisions.ReportSource.EromReportSourceBase.HandleException(Exception exception) +248
CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext) +441
CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) +131
CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) +115
Correctionnew.print() +376
Correctionnew.Button1_Click(Object sender, EventArgs e) +475
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900