02-14-2011 10:21 AM
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?
02-15-2011 01:26 AM
WordRpt_InsertTab() and WordRpt_GoToBookmark() are part of wordreport libray.
So you have to add wordreport.fp to your project.
02-15-2011 07:31 AM
Thanks...
04-08-2011 05:07 AM
I´m also getting the same error, and the instrument driver is included. What can I do? Thanks
05-04-2011 04:47 PM
Does your .c file have the code "#include wordreport.h" at the top of the file?
05-05-2011 07:57 AM
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"
//----------------------------
05-05-2011 08:38 AM
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
05-05-2011 08:46 AM
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
05-05-2011 09:14 AM
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?
05-05-2011 09:25 AM
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