Solved

Problems generating spreadsheet from C++ application after upgrade to Office 2003

Posted on 2007-04-11
6
284 Views
Last Modified: 2012-08-13
My workstation has been recently upgraded to Office 2003.  I tried to run an application that used to work on my workstation that generates an excel spreadsheet.  When I try to build for debugging I am getting the following error...

c:\visualstudio2005\source\gpmqnt\main branch\supplierscorecard\supplierscorecardmediator.h(23) : fatal error C1083: Cannot open type library file: 'excel9.olb': No such file or directory

I searched my c: drive for excel*.olb and found only Excel8.olb in WINNT\SYSTEM32.  This appears to be an old file.

My import statement looks like this...
#import <excel9.olb> rename("DialogBox", "DialogBoxXL") rename("RGB", "RBGXL") rename("DocumentProperties", "DocumentPropertiesXL") no_dual_interfaces

Does anyone know what the new import statement should look like?
0
Comment
Question by:jribble
  • 2
6 Comments
 
LVL 15

Expert Comment

by:dirknibleck
ID: 18891051
If you have Excel 2003, the Library should be excel 11.

My references window seems to think that the location of this library is excel.exe...
0
 
LVL 15

Accepted Solution

by:
dirknibleck earned 250 total points
ID: 18891055
Perhaps excel11.olb would be successful, if not excel.exe?
0
 
LVL 39

Assisted Solution

by:itsmeandnobodyelse
itsmeandnobodyelse earned 250 total points
ID: 18896972
>>>> workstation has been recently upgraded to Office 2003

Hmmm... I have a Excel 2002 - SP1 (Office 10) and names of the olb seem to have changed to xl5en32.olb. Check your directory ..\Microsoft Office\Office11 for *.olb.

Regards, Alex
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now