Ask a Question related to ASP.NET General, Design and Development.
-
Dominique MILLOT #1
QueryInterface, with the object Excel.Application
Hello,
With Asp.Net, I try to generat a document with an Excel object.
This is the begin of my procedure:
Dim xapExcel As Excel.Application
xapExcel = New Excel.Application()
xapExcel.Visible = False
At the last line I obtain this error:
"System.InvalidCastException: QueryInterface for interface
Excel._Application failed."
Other clues:
- I have granted AspNet to run Excel (with the tool DComCnfg.exe).
- I use Office XP in english, but the Os and .Net was in french. I have make
some tests without succes by changing CurrentCulture.
Someone have a solution ?
Regards.
Dominique MILLOT Guest
-
COM Object Excel
Hi, I was using a Coldfusion 4.5 server on a windows NT platform on which I was exporting datas in a Excel 97 using COM object. I've migrated all... -
Excel.Application
Hi I want to show a excel workbook trough my webserver using ASP. Wich dll's do I have to register in the webserver for this to work? Anyone... -
How to save a excel workbook in a web application
I used the following code to create a workbook and save it in a webapplication. dim oExcel As Excel.ApplicationClass dim oBook As... -
Problem on the ASP using the Excel.Application Object
Hi, All: I want to use excel component in the ASP. My code is that ----------------------------------------------------------- Dim oExcel As... -
Excel object in ASP
I am trying to use an excel spreedsheet on an asp.net page. The follow code works (with output mod.) in a .net console application. When I try to... -
Natty Gur #2
Re: QueryInterface, with the object Excel.Application
Hi,
Its better to use tlbimp when you use COM. here a detailed article of
what you are looking for :
[url]http://www.c-sharpcorner.com/Code/2002/Jan/CreateExcelSheetGAG.asp[/url]
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Dominique MILLOT #3
Re: QueryInterface, with the object Excel.Application
Thanks for your answer;
tlbimp was certainly usefull for Excel 5, 2000.
But I think we didn't need it for Office XP (2002)
And in add, it was recommanded on every doc I find for C and not for VB.
(Or I didn't understand tlbimp use)
Regards.
Dominique MILLOT Guest



Reply With Quote

