 |
| Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET). |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 26th, 2003, 09:55 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Using Excel XP and Excel 97
Guyz, i got this program am developing in VB6 but generates reports using excel en at work we are using Office XP but the client uses Office 97. I do have a reference on my VB6 project to "Microsoft Excel 10.0 object library" the program generates reports fine on office XP machine. Am wondering if this can still work on the clients computer who are using office 97. If i can't use this is there any suggestions?.
Please help!!!
LION OF JUDDAH!
__________________
LION OF JUDDAH!
|
|

August 27th, 2003, 07:36 AM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't think that it'll work when you use the reference of XP. You should refer to 97 typelib. To do that, copy the file Excel8.OLB locate in the Office folder on the client computer to your computer. After that register the typelib using regtlib. You should now be able to refer to Microsoft Excel 8.0 object library.
PS: I'm not a 100% sure that the file is name Excel8.OLB. If you don't find that file, search for the file Excel*.OLB and use the file that you find.
Stéphane Lajoie
|
|

August 27th, 2003, 02:47 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think am jus gonna have to use office 97 because DLL's will be different (unless it was the other way around CLient using XP and am using 97).
Another Question though is it possible to have 2 different Office Apps on one Comp? (office XP and Office 97)
This goes to Stéphane Lajoie.. the program u were helpin me with worked out well at the end thanx for the help.
LION OF JUDDAH!
|
|

August 28th, 2003, 10:36 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hey buddy.. I would like to try what u were saying (registering the .olb).. am sure if it works it will come in very handy one day.
I would like to to ask though if i include XL5EN32 (The EXCEL8.OLB version of XP...am not sure but i would bet it is)... if i include XL5EN32.OLB in my Setup file would it register it at the clients computer.
Have u ever tried this (registering the .OLB files before)?
LION OF JUDDAH!
|
|

August 29th, 2003, 07:10 AM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I've just look at the library XL5EN32.OLB. With this library, your application will be compatible with Excel 95 and later.
I'm not a 100% sure, but if I remember correctly, you don't need to redistribute this file, you only need it for the compilation and building of your app.
Stéphane Lajoie
|
|

August 29th, 2003, 05:58 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Do u think it would work if i register the EXCEL8.OLB in my XP machine that am doing the designing on en try to use it's references??.. Hope i make sence..
LION OF JUDDAH!
|
|

August 30th, 2003, 09:01 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hey don't worry what i was askin b4... I din't get that. I jus realised waht u meant. thanks for that.
LION OF JUDDAH!
|
|

September 16th, 2003, 10:08 AM
|
|
Registered User
|
|
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Look for Excel.exe instead of Excel.olb for office 2002.
|
|

March 30th, 2007, 03:28 AM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by stephanel
I don't think that it'll work when you use the reference of XP. You should refer to 97 typelib. To do that, copy the file Excel8.OLB locate in the Office folder on the client computer to your computer. After that register the typelib using regtlib. You should now be able to refer to Microsoft Excel 8.0 object library.
PS: I'm not a 100% sure that the file is name Excel8.OLB. If you don't find that file, search for the file Excel*.OLB and use the file that you find.
Stéphane Lajoie
|
|
|

March 30th, 2007, 03:32 AM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi there,
I am having the same problem here, but not sure on how to regiter the typelib using regtlib.
How do I go about that?
Thanks!!
AWoo.
|
|
 |