in

Error when generating Excel files (.xls) from reports

Last post 05-13-2008 7:50 AM by C1_GaryB. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-06-2008 6:45 PM

    Error when generating Excel files (.xls) from reports

     Hello,

     Some users of my application are complaining that they can't generate Excel files from the reports in the app. But this problem occurs only in one place and others places not. Here is the error message:


    System.NullReferenceException: Object reference not set to an instance of an object.
       at C1.C1Excel.t.j(BinaryWriter A_0)
       at C1.C1Excel.t.r()
       at C1.C1Excel.bh.aa()
       at C1.C1Excel.bh.b(Stream A_0)
       at C1.C1Excel.bh.j(String A_0, Boolean A_1)
       at C1.C1Excel.bh.c(String A_0)
       at C1.Win.C1Report.XlsFilter.EndReport()
       at C1.Win.C1Report.Layout.ab()
       at C1.Win.C1Report.C1Report.x()
       at C1.Win.C1Report.C1Report.ad(ExportFilter A_0, Boolean A_1)
       at C1.Win.C1Report.C1Report.RenderToFile(String fileName, FileFormatEnum fmt)
       at Matrix.Pro.Biblioteca.DocumentoC1.Salva()
       at Matrix.Pro.Interface.frmImpressao.Salva(DataRowView drv)
     

    We can't reproduce this error here, this occurs only in one of our clients. Some facts:

    - Trying to generate in other formats works fine

    - This error occurs in all reports in this client

    -  Tried with different OS with or without Microsoft Office or OpenOffice in different versions and works

    I attached an excel file generated during this error.

     Thx!

     

  • 05-13-2008 7:50 AM In reply to

    Re: Error when generating Excel files (.xls) from reports

    Hi,
     
    Try running this sample and see if that creates any error message. Also are you using the control for a network application?
     
    Regards,
    Gary.
    <andersonty> wrote in message news:204603@10.0.1.98...

     Hello,

     Some users of my application are complaining that they can't generate Excel files from the reports in the app. But this problem occurs only in one place and others places not. Here is the error message:


    System.NullReferenceException: Object reference not set to an instance of an object.
       at C1.C1Excel.t.j(BinaryWriter A_0)
       at C1.C1Excel.t.r()
       at C1.C1Excel.bh.aa()
       at C1.C1Excel.bh.b(Stream A_0)
       at C1.C1Excel.bh.j(String A_0, Boolean A_1)
       at C1.C1Excel.bh.c(String A_0)
       at C1.Win.C1Report.XlsFilter.EndReport()
       at C1.Win.C1Report.Layout.ab()
       at C1.Win.C1Report.C1Report.x()
       at C1.Win.C1Report.C1Report.ad(ExportFilter A_0, Boolean A_1)
       at C1.Win.C1Report.C1Report.RenderToFile(String fileName, FileFormatEnum fmt)
       at Matrix.Pro.Biblioteca.DocumentoC1.Salva()
       at Matrix.Pro.Interface.frmImpressao.Salva(DataRowView drv)
     

    We can't reproduce this error here, this occurs only in one of our clients. Some facts:

    - Trying to generate in other formats works fine

    - This error occurs in all reports in this client

    -  Tried with different OS with or without Microsoft Office or OpenOffice in different versions and works

    I attached an excel file generated during this error.

     Thx!

     



    http://helpcentral.componentone.com/cs/forums/p/75169/204603.aspx#204603

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2007 ComponentOne LLC All Rights Reserved.