Error (6) deleting enhanced metafile. Error Description

Post Reply
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Error (6) deleting enhanced metafile. Error Description

Post 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,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

Post by cdmmaui »

I am getting the same erroir using PRINT...ENDPRINT
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post 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.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

Post by cdmmaui »

Sorry, I found my problem... duplicate ENDPAGE
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Look for a duplicated ENDPAGE in your code
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Post 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,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
Post Reply