Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Error: OBJECTPAL version incompatible

Status
Not open for further replies.

sschiller

Technical User
Jun 7, 2001
6
US
I have programed some reports to print from pushbuttons, which use a query to create an Answer table, then reportPrintInfo to change the master table to the Answer table, for the purpose of printing a report related to a single record.

Problem: on a number of reports, if I use a DELIVERED report, I get an error message: "The OBJECTPAL version used in this form is incompatible with this version of Paradox. You must recompile from source". However, after hitting "OK" at the error message, the form displays correctly, using the Answer table information. If I use an UNDELIVERED version, the change of master table to "Answer" ends up in the Data Model, and I must indicate upon departing the report that I don't want to save the change to the form.

To the best of my knowledge, all these forms were created with Paradox 9, and were definitely delivered with Paradox 9. I don't know what I need to do to get rid of the error message.
 
The problem is that the structure of the master table in the delivered report and the structure of the Answer table are different, even though the tables may be compatible. For example, if the answer table is produced from a query, then sometimes it may have a field A32, or sometimes this field may be A21, depending on the result data. The delivered reports don't like this apparent change of structure which causes the error message to be produced.
Two possible solutions :
(1) Base the report on a temporary table, say :pRIV:TEMPANS.DB. After running the query, empty TEMPANS and copy the records from Answer to TEMPANS with a tcursor. Then call the report.
(2) Instead of the delivered report, use the source report (.RSL). Mark the file as read only in Windows Explorer, if you are worried about the user overwriting the original file. Change the code calling the report to something like this :
var
myReport report
rptInfo reportPrint
endVar
...
...
myRpt.open (rptInfo)
myRpt.designModified=false ;this will allow the report to close without asking for a save.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top