473,473 Members | 4,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Work with Office Web Component OWC11.

Hi,

From an aspx (.net 2.0) web site, I basically want to provide my users
with some data in an excel format.
I found that a good way was to user the owc11 library (from Office
2003).

It runs great on my dev machine and, of course, bad from my production
server.
What I did:
- Add a reference to the COM library OWC11
- Import Microsoft.Office.Interop.Owc11
- Declare a private variable as Spreasheet
- Do some stuff with the spreadsheet and send it with the response
object
--Runs ok on my dev machine

Once it runs on the prod server, I get the error :
- Type SpreadSheet is not defined.
When I look at the detailed error, I find "error BC30456: 'Office' is
not a member of 'Microsoft'"

Office 2003 is installed on the server. Office 2003 PIA is installed
on the server.
I fouond in the registry that owc11 interop was targetting the runtime
version v1.1.4322 while only 2.0 is installed.
Could it be the source of the problem?

Any comment/suggestion warmly welcome.

Thanks,

Olivier
Feb 26 '08 #1
1 4793
On 26 fév, 10:32, oliviers <olivier.san...@gmail.comwrote:
Hi,

From an aspx (.net 2.0) web site, I basically want to provide my users
with some data in an excel format.
I found that a good way was to user the owc11 library (from Office
2003).

It runs great on my dev machine and, of course, bad from my production
server.
What I did:
- Add a reference to the COM library OWC11
- Import Microsoft.Office.Interop.Owc11
- Declare a private variable as Spreasheet
- Do some stuff with the spreadsheet and send it with the response
object
--Runs ok on my dev machine

Once it runs on the prod server, I get the error :
- Type SpreadSheet is not defined.
When I look at the detailed error, I find "error BC30456: 'Office' is
not a member of 'Microsoft'"

Office 2003 is installed on the server. Office 2003 PIA is installed
on the server.
I fouond in the registry that owc11 interop was targetting the runtime
version v1.1.4322 while only 2.0 is installed.
Could it be the source of the problem?

Any comment/suggestion warmly welcome.

Thanks,

Olivier
Well, the solution is working by publishing the site instead of just
copying it.
I guess that's the solution.
Feb 26 '08 #2

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

Similar topics

0
by: acharyaks | last post by:
Hi life saver, I am using excel component for the development. The purpose is to connect to excel through the odbc connection string. Then through the connection extract data into a dataset and...
1
by: Gerry Roston | last post by:
I'm not sure what I am missing... According to http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B319793, documentation for OWC11 is found in C:\Program Files\Common Files\Microsoft...
2
by: Gerry Roston | last post by:
I have a rather simple ASP.NET program for displaying a formatted spreadsheet. (Needless to say, there will be some data added!): Private Sub Page_Load(ByVal sender As System.Object, ByVal e As...
3
by: DC Gringo | last post by:
Allison (or others), thank you for the advice...a few more questions: - I have tested on my workstation on Excel XP and my application references the Excel 10.0 Object Library. I was told the...
1
by: BK | last post by:
I have a .NET Solution (currently in 2003, FW 1.1) that uses Office automation for a few things (generates a Word document, dumps datagrids to Excel, etc.). One of my programmers works on the...
0
by: martinb2007 | last post by:
Hi everybody! From Buenos Aires. A brief explanation of the application I'm developing. Any help or discussion about welcomed. I'm developing a Documents Manager that allows to upload office and...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
1
by: Manikandan | last post by:
Hi, I have a question reg excel interop. I have no excel installation(office installation) in my system I'm using office web components in my application. is there any help available to use...
2
by: jit007 | last post by:
HI all , I am creating a UI using VBA program where I am using OWC 11 control. What I want is that--- when user will select the pricular cell(say, D4) in the OWC spreadsheet, a combo box appears...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.