473,320 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

asp.net error using office XP PIA

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

Nov 21 '05 #1
2 2767
Hi,

I would create the spread sheet in xml and try to use that
instead of automating excel.

http://support.microsoft.com/kb/319180/EN-US/

http://msdn.microsoft.com/office/und...ing/xmloffice/

Ken
-------------------
<ti****@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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
Nov 21 '05 #2
Any luck with this. I just ran into this problem today with c# and experience both problems (with and without providing the file name) and have not been successful.

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aprochko | last post by:
Attempting to access outlook from C# .NET ASP app. Have added reference to COM Microsoft Outlook 11 Object Library. Have included using System.Runtime.InteropServices; using System.Web.Mail;...
8
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
1
by: ns2k | last post by:
I add reference office.dll and Microsoft Office Excel Component to my project and use : --------------------------------------- Dim App As Excel.Application, BarName as String ... Dim Bar As...
2
by: Howard Kaikow | last post by:
MSFT KB article 302896 includes a step by step example demonstrating how to build an Office COM in VB .NET, Yesterday, I implemented the example and it works correctly when starting each of the...
3
by: Benny Raymond | last post by:
I get the following error message when trying to use the Excel Interop on my wife's machine however I don't get it on my own - we have the same version of Office installed - what could be the...
0
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell...
0
by: nithya176 | last post by:
Hey guys..i jus thought if u cud help me out wit this error im gettin. Im writing a c# code to create an add-in in visio using VSTO. I found this code which was in VB and i'm tryin to convert it to...
2
by: kevinr | last post by:
Hi, I am brand new to VB, and I am trying to deploy Office 2007 on my network here at work. We used part of this script to do another deployment, and I have taken pieces and tried to edit for this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.