473,513 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PIA of Microsoft Office 2003

I have installed the PIA of Microsoft Office 2003 and the installation was
succefully.
If I add the reference of Microsoft Excel 11.0, I see that the property
CopyLocal is False
and the assembly linked is

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\11.0.0.0__71e9bce111e
9429c\Microsoft.Office.Interop.Excel.dll

But if I try to use the the assembly, I see that the object Range are
declared Object and not
Excel.Range... I can't see the method and the property of the object.
Also the example on the Microsoft's site
http://msdn.microsoft.com/library/de...dc_oxppias.asp
can't be compiled because the istruction

strRow = strRow & objRange.Cells(intRow, intCell).value & vbTab

say me that Option Strict can't convert the type Object into Excel.Range...

Thanks. Ciao.
pEIO
Nov 20 '05 #1
6 1961
Hi Pieo

You need to use DirectCast something like this

DirectCast(objBook.Sheets
("English"),Excel.Worksheet).Activate()

Kind Regards
Jorge
-----Original Message-----
I have installed the PIA of Microsoft Office 2003 and the installation wassuccefully.
If I add the reference of Microsoft Excel 11.0, I see that the propertyCopyLocal is False
and the assembly linked is

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop. Excel\11 ..0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll

But if I try to use the the assembly, I see that the object Range aredeclared Object and not
Excel.Range... I can't see the method and the property of the object.Also the example on the Microsoft's site
http://msdn.microsoft.com/library/default.asp? url=/library/enus/dnoxpta/html/odc_oxppias.aspcan't be compiled because the istruction

strRow = strRow & objRange.Cells(intRow, intCell).value & vbTab
say me that Option Strict can't convert the type Object into Excel.Range...
Thanks. Ciao.
pEIO
.

Nov 20 '05 #2
"Jorge" <an*******@discussions.microsoft.com> ha scritto nel messaggio
news:fa****************************@phx.gbl...
Hi Pieo

You need to use DirectCast something like this

DirectCast(objBook.Sheets
("English"),Excel.Worksheet).Activate()

Kind Regards
Jorge

I know that maybe possible use the direct cast but this don't work...
This istruction return an exception something like this:

"Invalid cast from Object to Worksheet"

Thanks. Ciao.
pEIO
Nov 20 '05 #3
* "©pEIO" <peio(nospam)@email.it> scripsit:
I have installed the PIA of Microsoft Office 2003 and the installation was
succefully.
If I add the reference of Microsoft Excel 11.0, I see that the property
CopyLocal is False
and the assembly linked is

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\11.0.0.0__71e9bce111e
9429c\Microsoft.Office.Interop.Excel.dll


Sure you set the reference on the "COM" tab?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Hi Peio

It was just an example, try one the following :
strRow = strRow & directcast(objRange.Cells(intRow,
intCell), excel.range).value & vbTab

strRow = strRow & directcast(objRange, excel.range).Cells
(intRow, intCell).value & vbTab

Kind Regards
Jorge
-----Original Message-----
"Jorge" <an*******@discussions.microsoft.com> ha scritto nel messaggionews:fa****************************@phx.gbl...
Hi Pieo

You need to use DirectCast something like this

DirectCast(objBook.Sheets
("English"),Excel.Worksheet).Activate()

Kind Regards
Jorge
I know that maybe possible use the direct cast but this

don't work...This istruction return an exception something like this:

"Invalid cast from Object to Worksheet"

Thanks. Ciao.
pEIO
.

Nov 20 '05 #5
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> ha scritto nel
messaggio news:2h*************@uni-berlin.de...
* "©pEIO" <peio(nospam)@email.it> scripsit:
I have installed the PIA of Microsoft Office 2003 and the installation was succefully.
If I add the reference of Microsoft Excel 11.0, I see that the property
CopyLocal is False
and the assembly linked is

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\11.0.0.0__71e9bce111e 9429c\Microsoft.Office.Interop.Excel.dll


Sure you set the reference on the "COM" tab?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Yes, very very sure!!!! :D
It's very very strange.....

Ciao.
pEIO
Nov 20 '05 #6
"Jorge" <an*******@discussions.microsoft.com> ha scritto nel messaggio
news:fa****************************@phx.gbl...
Hi Peio

It was just an example, try one the following :
strRow = strRow & directcast(objRange.Cells(intRow,
intCell), excel.range).value & vbTab

strRow = strRow & directcast(objRange, excel.range).Cells
(intRow, intCell).value & vbTab

Kind Regards
Jorge


Thanks... I have try this but don't work.....
It's very very strange...

Ciao.
pEIO
Nov 20 '05 #7

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

Similar topics

3
1026
by: Helene Day | last post by:
I am trying to access the Word Objects from a .NET project. I have some sample from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/WordObject.asp and I...
0
2256
by: tel4 | last post by:
Microsoft Visual Studio Tools for the Microsoft Office System 2003 Microsoft Corp. DATE......: 03-10-2003 TYPE......: Application OS........: WinALL DiSKS.....: xx/02 PROTECTiON : NONE/RETAiL...
1
1945
by: TJ | last post by:
I am interested in packaging a database that I have created and understand I will need Microsoft Office Developer's Edition XP to allow users that do not have Access to run it. I have looked on...
1
1610
by: AmiciDan | last post by:
When I attempt to create a new project in Visual Studio .NET 2003, I do NOT have the option to create the following: Microsoft Office 2003 Projects What do I need to install or do to get this...
2
11438
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
9
2091
by: Dean | last post by:
I wrote a simple App in Access 2003 but used the 2000 file format. The one module Requires reference to Microsoft Office 11.0 Object Library. However, the person I have the code to has Office 2003...
6
5981
by: SivaSiva | last post by:
Hi, I'm getting the following error when I try convert a word document using asp.net. Application Event Log : Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature...
5
49763
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
1
3448
by: Alan T | last post by:
VS 2005 and MS Office 2003 installed. I can include Microsoft.Office.Core and Word in the references so I can add the using Microsoft.Office.Interop.Word. However, my workmate cannot do the...
6
7631
by: Excel 009 | last post by:
Hi, In my office I have Office 2003 on the PC. I created an Access application which has a component reference to Microsoft Office 12.0 Object Library. The problem that I am having now it...
0
7379
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,...
0
7535
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...
0
5682
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,...
1
5084
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...
0
4745
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
3232
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
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
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 ...
0
455
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...

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.