Exception when closing excel workbook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • etp
    New Member
    • Aug 2007
    • 1

    #1

    Exception when closing excel workbook

    I am using office automation to open and read an excel doc on a K2 workflow server. I get an intermittent bug where I get a pop-up error box in excel saying "Not enough system resources to display properly", and the K2 server reports that the document is in use and is locked.

    The excel doc opens and reads the data ok, but when calling ExcelWorkbook.C lose throws the following error:

    System.Runtime. InteropServices .COMException (0x800AC472): Exception from HRESULT: 0x800AC472.
    at Excel.WorkbookC lass.Close(Obje ct SaveChanges, Object Filename, Object RouteWorkbook)

    The excel file isnt in use by any other process. I'm not sure whats happening and I cant find any info on this. Any ideas? Thanks
Working...