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