Board index » cppbuilder » Excel (Again) and Process Termination
Andy Graham
CBuilder Developer |
Excel (Again) and Process Termination2004-07-13 12:00:16 AM cppbuilder37 Apologies for the duplicate post (I have already posted a request on a different thread here, but thought it may not get noticed towards the end of an older thread.) I have written an ActiveX component, a requirement of which is to export configuration data into Excel files, for printing and other processing. I intend to use "TExcelApplication", "TExcelWorkbook" and "TExcelWorksheet". I have taken example code from Adrian Carter and from "Blue Knight". I managed to get both of these examples working as a part of an application, but when using either within the ActiveX component I get the same problem. As soon as I have executed a line similar to: xlws->ConnectTo(xlwb->Worksheets->get_Item(Variant("Sheet1"))); then I am no longer able to close down my container application. Having spent the day trawling through the newsgroups, I see that I am by no means alone. I see further that there seems to be some relation between the Excel process not terminating and my process not terminating, but so far have not found a solution. All ideas gratefully received. Andy |