Page 1 of 1

Error (6) deleting enhanced metafile. Error Description

Posted: Thu Jun 14, 2007 6:04 pm
by Kleyber
Hi All,

Suddenly this message appears when I try to create a report using TReport. What can causes this? How to solve it?

TIA,

Posted: Thu Jun 14, 2007 7:43 pm
by cdmmaui
I am getting the same erroir using PRINT...ENDPRINT

Posted: Thu Jun 14, 2007 7:49 pm
by driessen
Hello,

I had the same problem a few weeks ago.

Reason : I used ENDPAGE twice, the one just after the other.

After deleting one ENDPAGE, the problem was solved.

Good luck.

Posted: Thu Jun 14, 2007 7:49 pm
by cdmmaui
Sorry, I found my problem... duplicate ENDPAGE

Posted: Thu Jun 14, 2007 7:49 pm
by Antonio Linares
Look for a duplicated ENDPAGE in your code

Posted: Tue Jun 19, 2007 7:33 pm
by Kleyber
After a few days without accessing internet, I am back to tell you that the problem was solved, but it was not a duplicated ENDPAGE. In fact the problem was more complex that I was supposing to.
In my routine, I put in the ON END clause a function that makes a DO WHILE... !EOF() over an other DBF and the TReport:lFinish was (logically) setted TRUE and when the function reaches the end of the page, the problem occurs. But now it's ok, I just put ::lFinish:=.F. and after the DO WHILE setted again to .T.

Thanks for all opinions and help,

Best Regards,