Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

In my Visual Basic 6.0 project I have referenced MS Office 14.0 libraries and used to convert from document to pdf.

No I want to install My VB 6 application on the machines which has MS Office 2000
I tried to install... everything works file.. but when using MS Office 14.0 libraries to convert doc to pdf, it is throwing error.

Please help me how to proceed.

Srinivas.
Posted
Comments
[no name] 27-Sep-13 6:30am    
Use your debugger to find out whatever the error is then you would be able to fix the error.

1 solution

As I understand the problem, you messed up. You cannot use the 14.0 references with an older version of Office. It's simply not going to work because the older libraries do not know anything about the references to 14.0 libraries.

In order to get multiple versions of compatibility, you have to add the references to the OLDER version of Office. Newer versions of the libraries are backwards compatible with the older references.

You cannot get older versions of Office libraries to understand references that didn't exist when they were built years ago.
 
Share this answer
 
Comments
cyanceenu 30-Sep-13 5:54am    
Thanks Dave for your reply..
But my problem is that, my VB 6 application code is referring to 14.0 object library, compiled and executed..working fine with the new code (accessing 14.0 libraries).
In my development system, Microsoft Office 2010 is installed, where my new code is compiled and working fine..

But when I install the setup of the same VB 6 application and run, the program is throwing an error while referencing 14.0 libraries. where 14.0 libraries are not present, because MS Office 2000 is installed on that machine (12.0 libraries).
Now I need a help in this regard, that,
How can I install the 14.0 object libraries on the new machine, so that the references will be there for the program to run.
Dave Kreskowiak 30-Sep-13 7:16am    
Install that version of Office.
cyanceenu 30-Sep-13 21:17pm    
:) If I want to do so... I have to buy licenses for 20 systems and install..
Dave Kreskowiak 1-Oct-13 1:19am    
You wrote your code to require it!

You either install the higher version of Office or you remove the references to it in your code and add the references for the older version of Office.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900