How to Print Crystal Reports automatically in asp.net c# RRS feed

  • Question

  • User-1939249872 posted

    I'm preparing web application for accounting purpose. While it's implementing in client computer it displays following problem in system.

    is it possible to print Invoice Bill in asp.net after bill prepared?

    if how we can do it using sql server authentication?

    my problem is as follows:


    CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack. at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod) at Account.Accouunts.frmService.billPrinting(String Vchrno) in D:\Latest Web Projects\AccountProduction\Account\Accouunts\frmService.aspx.cs:line 1142

    Saturday, October 5, 2013 12:51 PM

All replies

  • User-37275327 posted

    is it possible to print Invoice Bill in asp.net after bill prepared?

    Yes, But you can not send the print job to client pc.Client action required to print.

    D:\Latest Web Projects\AccountProduction\Account\Accouunts\frmService.aspx.cs:line 1142

    This is where is error is. Debug the application, placing the debug pointer on line 1142.

    Monday, October 7, 2013 4:15 AM
  • Monday, October 7, 2013 7:39 AM
  • User-578610739 posted

    hi ,

    You can achieve by printtoprinter option, but this will print on default printer of server.

    Thursday, October 17, 2013 2:13 AM
  • User-1939249872 posted

    I can't open and view the report in crystal report also how can do it 

    iritating in this problem

    Sunday, November 3, 2013 10:50 PM