Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to Create a Document and Save it from a WinForm
I developed a WinForm application wich takes some
information from a database and I want to write some data to an .XLS document. When I execute the code it throws an exception: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Excel Test 01.exe Additional information: Old format or invalid type library. My Code: Microsoft.Office.Interop.Excel.Application ap = new Microsoft.Office.Interop.Excel.ApplicationClass(); Microsoft.Office.Interop.Excel.Workbook wb = ap.Workbooks.Add(Type.Missing); ap.Workbooks.Close(); I need to know how can I start the Application class properly. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to create a formatted 'readable' document based on Excel document? | Excel Discussion (Misc queries) | |||
HELP!!--unable to save document | Excel Worksheet Functions | |||
"Save as" will not work when trying to save a document in a folder | Excel Discussion (Misc queries) | |||
'document not saved' for 'save' or 'save as' an EXCEL file | Excel Discussion (Misc queries) | |||
Document won't save | Excel Discussion (Misc queries) |