Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm automating Excel from asp.net application on window2000.
the application work fine on the developpement machine but not on the production server. when the runtime hit the second line of code: Dim xl As New Excel.Application Dim wb As Excel.Workbook = xl.Workbooks.Open("file.xls") it throw this error: "System.InvalidCastException: QueryInterface for interface Excel._Application failed" thanks for help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Zino,
I'm automating Excel from asp.net application on window2000. the application work fine on the developpement machine but not on the production server. when the runtime hit the second line of code: Dim xl As New Excel.Application Dim wb As Excel.Workbook = xl.Workbooks.Open("file.xls") it throw this error: "System.InvalidCastException: QueryInterface for interface Excel._Application failed" Excel is not designed to be run on a server in this manner. If you search the Microsoft KB for 'Excel Server' you should find some information about the (many) issues. Regards Stephen Bullen Microsoft MVP - Excel www.oaltd.co.uk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel automation in MFC | Excel Programming | |||
C# Excel Automation Add-In | Excel Programming | |||
Excel automation in a VB app | Excel Programming | |||
Excel Com Automation | Excel Programming | |||
Excel Web Automation | Excel Programming |