Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Excel.Application, Workbooks.Add problem

$
0
0

Hi

Recently moved a couple of websites from a Server 2008r2 box to a new 2012r2 box. both websites use Server.CreateObject("Excel.Application") to access or create excel documents

One web site opens existing docs, writes new values to them & then displays the resulting values created by the changes, this web site is working perfectly.

The other web site displays data from a database, and allows the user to download a excel doc of this data. This is the one with the problem, the web site itself works fine. But when the page that creates the excel doc for download runs, I get this message

Microsoft Office Excel error '800a03ec'.Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space.
• To make more memory available, close workbooks or programs you no longer need. 
• To free disk space, delete files you no longer need from the disk you are saving to.

this line executes ok.       Set YearxlApp = Server.CreateObject("Excel.Application")

the next line in the code is where it fails.   Set YearxlBook  = YearxlApp.Workbooks.Add

the error message  is rubbish, its a new build server with over 100gb memory free and more disk space than you could ever fill. I am inclined to think its some sort of permission thing. but what I don't understand is how the other web site works fine

the only difference being, one usesWorkbooks.Add the otherWorkbooks.Open

any ideas or places to look would be greatly appricated

Thanks


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>