473,566 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling Excel 2000 from ASP on IIS 6

1 New Member
I have moved an ASP application to a new Windows server. Need to export data to Excel. Worked fine before. Not so anymore.

Case:
- Exporting data from ASP to Excel 2000, using Office Web Components.
- Installed and reinstalled Excel, also checking that MSOWC.DLL is in the right spot on my disk.
- Old server Win 2000/IIS 5, new server Win2003/IIS 6.
- Have selected ALLOWED for all Web Extensions in IIS Manager (all ISAPI, all CGI, ASP, ASP.NET, etc.)
- Also specified that ASP in particular should be allowed to run ALL Web Extensions
- Used DCOM Config (dcomcnfg.exe) to set authorization to ”None” for the Excel DCOM-object
- Also tried to tell DCOM to run Excel on the old server (where things used to work) and not on the local computer

The Excel object is made like this:
Set objSpreadsheet = Server.CreateOb ject("OWC.Sprea dsheet") (works OK)

The link and export is done like this:
<a target="_blank" href='xls/<%=etype%>_<% =session("filena me")%>?Nocache="<%= server.URLencod e(now())%>"'><b >Download to Excel</b></a>
session("save") = Server.MapPath( "xls/") & "\" & etype & "_" & session("filena me")
objSpreadsheet. ActiveSheet.Exp ort(session("sa ve"))

Error msg (points to the last line above, trying to export the data):
Microsoft Office Web Components 9.0 error '80070005'
Cannot start Microsoft Excel. Click OK, and make sure you can run Excel. If you can't, uninstall and then reinstall Excel. Then try exporting again.

Like I said, reinstall of Office is something I tried. Like everything else I know, or rather don't know, anything about.

Session(”filena me”) (in bold in my code sample) is blank. On the old server this was an 8- or 9-digit number with the .XLS extension. Session(”filena me”) is not set anywhere in my code, so it must come from the Excel-object...

Please!!

Jostein
Jul 26 '07 #1
0 1744

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1215
by: Dean Bortell | last post by:
This code runs fine on win xp and office xp: string sheetPassword = "Senior1993"; string sheetToOpen = "NewRpt1c.xls"; Excel.Application excelApp = new Excel.Application(); excelApp.Visible=true; object spreadsheetFileName = Environment.CurrentDirectory + "\\" + sheetToOpen; Excel.Workbook excelWorkbook = excelApp.Workbooks.Open...
4
3931
by: D | last post by:
I've created a report with many subreports of aggregate data. I want my client to be able to export this data to Excel to make her charts, etc. Only one problem: one of the fields is a "SchoolYear" TEXT field that contains data such as 2000/01, 2001/02, etc. If I export a Query with this kind of data to Excel, it gives me the text value of...
3
7384
by: Mark Schaffer | last post by:
Basically, I have two questions: 1. How do you create an .xll file using C# and Visual Studio .NET? 2. How do you make functions callable/visible from Excel (2000 or XP)? I am very new to this type of programming, so I apologize if this is very elementary or obvious. Most of my previous experience is mostly in Fortran, various...
1
1374
by: Dean Bortell | last post by:
This code runs fine on win xp and office xp: string sheetPassword = "Senior1993"; string sheetToOpen = "NewRpt1c.xls"; Excel.Application excelApp = new Excel.Application(); excelApp.Visible=true; object spreadsheetFileName = Environment.CurrentDirectory + "\\" + sheetToOpen; Excel.Workbook excelWorkbook = excelApp.Workbooks.Open...
17
6319
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
1
2162
by: Steven | last post by:
Hello, I use the following code to make an Excel-file, which works fine with Excel 2003 (and the MS Excel 11.0 object library): Dim Excel As New Excel.Application Dim oBook As Excel.Workbook Dim WSheet As New Excel.Worksheet WSheet = Excel.Workbooks.Add.Worksheets.Add
2
3521
by: cr113 | last post by:
I just upgraded from Office 2000 to Office 2003. My VB.NET Excel macro calls don't work any longer. Here is how I make my Excel macro call from VB.NET: Dim objExcel as Excel.Application objExcel = New Excel.Application objExcel.Workbooks.Open(FileName:="c:\test.xls", ReadOnly:=True) objExcel.Run("test.xls!test.test")
1
4119
by: cr113 | last post by:
We've upgraded from Office 2000 to Office 2003 and now my excel macro calls are messed up. There's about a 15 second delay from the time I make the call in VB.NET to the time the excel macro is actually executed. Here's my code: Dim oExcel As Microsoft.Office.Interop.Excel.Application oExcel = New...
4
3970
by: =?Utf-8?B?THluZXJz?= | last post by:
Hello All, We have a VB.NET application writen using VS 2003. This application apens an excel file from a vendor, reads the data and performs whatever functions it needs. We recently upgraded our sytems to Excel 2003 from Excel 2000. Our application started erroring out because it was having a problem with opening the Excel file. From...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.