PC Review


Reply
Thread Tools Rate Thread

ASP.NET Excel Problem

 
 
No_Spam
Guest
Posts: n/a
 
      30th Jan 2007
I'm using Microsoft Excel Object 11.0
(Microsoft.Office.Interop.Excel)
to open excel from my web application and set few cells values before
displaying it to users.
When I deployed the website to the server, the site won't run
because:
-
"Could not load file or assembly 'Microsoft.Office.Interop.Excel,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
or
one of its dependencies"

I think the error is because Excel is not installed on the web server
since the Microsoft.Office.Interop.Excel is looking for Excel.exe
file. I cannot install Excel on the web server because of the network
admin. How can fix this? Is there another way of loading excel other
than using that object? All users have Excel on their computers, so
running the website won't be a problem. I just need another excel
reference, if any; to make changes to the file before it is called by
users.

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      30th Jan 2007
"No_Spam" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> How can fix this?


Sigh... here we go again.

Microsoft Office is not designed to be automated server-side i.e. by
ASP.NET. Microsoft won't support any application which does this:
http://support.microsoft.com/default...US;q257757#kb2

See the thread in the newsgroup entitled "Automation of Word from .net 2"
for further discussion about why you shouldn't even try to do this...


> Is there another way of loading excel other than using that object?


There most certainly is!

1) If the Excel file is just plain text, create a CSV file.

2) Create an HTML file and give it an .xls extension

3) Use the Excel XML file format:
http://www.microsoft.com/downloads/d...displaylang=en

4) Use this:
http://www.aspose.com/Products/Aspos...s/Default.aspx



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= Microsoft ASP .NET 15 24th Oct 2007 02:34 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= Microsoft Excel Programming 0 5th Oct 2007 10:26 AM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= Microsoft Excel Programming 0 5th Oct 2007 10:24 AM
.net1.1 and excel automation problem -- "excel has encountered a problem and needs to be closed" Ron Microsoft Excel Discussion 0 25th Sep 2007 01:41 AM
.net1.1 and excel automation problem -- "excel has encountered a problem and needs to be closed" Ron Microsoft Dot NET 0 25th Sep 2007 01:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:31 AM.