LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Linking errors in Labwindows 2010

While trying to duplicate the Word report example program in Labwindows 2010 the following error occurs. 

 

18 project link Errors

 

Undefined symbol '_WordRpt_InserTab@4' referenced in test2.c

Undefined symbol '_WordRpt_GoToBookmark@8 referenced in test2.c ...

 

What is the basic thing i'm missing to get this to link?

0 Kudos
Message 1 of 10
(3,990 Views)

WordRpt_InsertTab() and WordRpt_GoToBookmark() are part of wordreport libray.

So you have to add wordreport.fp to your project.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 2 of 10
(3,964 Views)

Thanks...

 

0 Kudos
Message 3 of 10
(3,954 Views)

I´m also getting the same error, and the instrument driver is included. What can I do? Thanks

 

 

screener.JPG

0 Kudos
Message 4 of 10
(3,828 Views)

Does your .c file have the code "#include wordreport.h" at the top of the file?

0 Kudos
Message 5 of 10
(3,792 Views)

Here are the includes cut from the code

 

/----------------------------------------------------------------------------
// Example program to demostrate using ActiveX Automation instrument driver to
// control Microsoft Word 9.0 and later.
//----------------------------------------------------------------------------

//----------------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------------
#include <cvirte.h>    
#include <userint.h>
#include "word2000.h"
#include "toolbox.h"
#include <utility.h>

#include "worddemo.h"

//----------------------------

0 Kudos
Message 6 of 10
(3,782 Views)

These appears to be the includes in word2000demo sample project, which does not make use of wordrpt instrument.

Wordrpt sample project is the sample project that uses Word Report instrument and actually includes wordreport.h



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 7 of 10
(3,774 Views)

What would be the least number of includes that would open Word  and create a new file results.dat  that is the example i want to start with. From there i can sort out all the other functions.  ie a console app the opens word and creates results.dat

0 Kudos
Message 8 of 10
(3,771 Views)

It depends on what do you want to obtain. Are you using functions from Word Report instrument? So you need to load both Word Report and Word 9.0 object library instruments and include word2000.h and WordReport.h files. If you can limit your application to word interface only then you need one instrument and one include only.

 

On the other hand, .dat does not appear a typical Word file extension: how do you intend to create such file?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 9 of 10
(3,766 Views)

Good point...  

 

right now we create a results.dat file and print it to a centronics dot matrix printer.    The printers are being replaced so the need to change the report.  So the requirement has to change to results.doc  so the we can print it  

0 Kudos
Message 10 of 10
(3,762 Views)