Excel Report not generating

Discussion in 'ASP.NET 2.0' started by bangalinet, Jun 30, 2007.

  1. I m using 'Office Window Component' for generating Excel report from my application.so 4 that i've already put the .dll files (for running d excel report) to my bin directory but i found the error message :
    'Message: BC30002: Type 'Owc11.Spreadsheet' is not defined.'

    original problem showing in d following line
    -----------------------------------------------------------------------------------------------
    Line 522: 'excelobj = Server.CreateObject('owc.spreadsheet')
    Line 523: ' Dim ex As New OWC.Spreadsheet</font>
    Line 524: Dim excelobj As New Owc11.Spreadsheet </font> <--------------- Error Created
    Line 525:
    Line 526: Dim iexcelcounter As Integer = 10

    ------------------------------------------------------------------------------------------------

    can any one help me to prevent this or any other way 2 generate Excel Report from ASP.NET 2
    it's too urgent. thank u very much................
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    OWC is a COM object. If you are using this with .NET, you'll have to create an InterOp. This error indicates that the InterOp is not in the bin directory of the application root.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page