scottfarcus
Registered User.
- Local time
- Today, 07:06
- Joined
- Oct 15, 2001
- Messages
- 182
I am building an application that has the ability to export some data to MS Project in order to produce a Gantt chart view of a set of records.
In order to do this, the database must have a reference set to the MS Project object library. This works beautifully on my machine, but I'm afraid, once deployed, this application may find its way to a machine without Project installed. This will cause major errors, not only when you click the button to export the data, but, more importantly, on open of the application rendering the database useless.
I have discovered how to set and remove references on the fly using VBA, but I still have a problem: Setting a reference on the fly requires knowledge of the location of the .olb file. In most cases this will be in C:\Program Files\Microsoft Office\etc., but there is always the possibility that the end-user did not choose to install Project or Office in the default directory or even the default drive.
1) How can I determine if Project has been installed?
2) How can I locate the necessary .olb file in order to set my reference?
3) Would you recommend using an optional install? (ie., If you have Project installed, click here. If you do not have Project installed, or are not sure, please click here.) thereby installing one of two different versions of the application?
Any help appreciated.
Thanks in advance.
In order to do this, the database must have a reference set to the MS Project object library. This works beautifully on my machine, but I'm afraid, once deployed, this application may find its way to a machine without Project installed. This will cause major errors, not only when you click the button to export the data, but, more importantly, on open of the application rendering the database useless.
I have discovered how to set and remove references on the fly using VBA, but I still have a problem: Setting a reference on the fly requires knowledge of the location of the .olb file. In most cases this will be in C:\Program Files\Microsoft Office\etc., but there is always the possibility that the end-user did not choose to install Project or Office in the default directory or even the default drive.
1) How can I determine if Project has been installed?
2) How can I locate the necessary .olb file in order to set my reference?
3) Would you recommend using an optional install? (ie., If you have Project installed, click here. If you do not have Project installed, or are not sure, please click here.) thereby installing one of two different versions of the application?
Any help appreciated.
Thanks in advance.