Office XP PIA error with Excel in ASP.NET

T

timtai

I am trying to create an excel report from my aspx.vb code. I got the
following error trying to add a workbook:
Dim xApp As New Microsoft.Office.Interop.Excel­.Application
Dim xWB As Microsoft.Office.Interop.Excel­.Workbook
xApp.Workbooks.Add()
ERROR --> COMException (0x800a03ec): Microsoft Excel cannot open or
save any more documents because there is not enough available memory or

disk space
If I replace it with
xWB = xApp.Workbooks.Add("c:\aspnet\­default.xlt") -- I have ASPNET
as
an user with full access to the folder aspnet.
I got a differnt error:
COMException (0x800a03ec): Excel cannot access 'default.xlt'. The
document may be read-only or encrypted.


I have been trying to get this to work for the whole weekend. Any help

is highly appreciated.


Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top