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.Applicati on
xapExcel = New Excel.Applicati on()
xapExcel.Visibl e = False
At the last line I obtain this error:
"System.Invalid CastException: QueryInterface for interface
Excel._Applicat ion 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.
With Asp.Net, I try to generat a document with an Excel object.
This is the begin of my procedure:
Dim xapExcel As Excel.Applicati on
xapExcel = New Excel.Applicati on()
xapExcel.Visibl e = False
At the last line I obtain this error:
"System.Invalid CastException: QueryInterface for interface
Excel._Applicat ion 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.
Comment