Solved

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

Posted on 2007-04-11
6
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help on Solver add-in 30 45
usage of ms/excell 3d maps in ms/access 2016 6 37
How to consolidate .ods files in one sheet 30 38
copy down array 24 26
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

739 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