FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour preview problems with fwh 2.6
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM
preview problems with fwh 2.6
Posted: Mon Oct 17, 2005 09:27 PM

Antonio,

I noticed that the metafile.c program was supplemented with metafi32.c

I am experincing 2 problems with the "new metafile" logic.

  1. Each time I use the preview process ( vanilla - right out of the box ) with my report object, I get the following message - EVERY TIME.

( from metafi32.c )

Error (6) deleting enhanced metafile
Error Description

This is new with FWH 2.6 over FWH 2.5

  1. If my report object is sized for legal sized / landscape paper and I double-click on the page, it does not get "larger" as in FWH 2.5. If my report object is for letter page portrait - it does get (slightly) larger.

The behaviour is much different from FWH 2.5 - before you started coding the previewer for ENHANCED METAFILES.

What is the difference? How can I address this? Why am I getting the message?

Etc.

Thanks in advance for your help.

PS - I think I will like this new message format once I get used to it.;

Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
more preview testing results
Posted: Mon Oct 17, 2005 09:58 PM

Double click on preview screen.

If the image is for Portrait / 8.5 x 11 inch paper

the image WILL GET LARGER.

It appears that all LANDSCAPE reports, both 8.5 x 11 and 8.5 x 14 reports DO NOT GET LARGER by double clicking.

Don Lowenstein
www.laapc.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
preview problems with fwh 2.6
Posted: Wed Oct 19, 2005 04:56 PM

Don,

Have you check if there are others EMF files in your windows TEMP (GetEnv("TEMP")) directory ?

Does the report preview remains open ?

Could you provide a sample to reproduce it ? Thanks.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
preview problems with fwh 2.6
Posted: Wed Oct 19, 2005 05:02 PM

Don,

Could you please test samples\TestPrn2.prg and check if it works ok for you ? Here it works ok. Thanks.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
preview problems with fwh 2.6
Posted: Wed Oct 19, 2005 07:43 PM

I have isolated the problem.

Embarassingly (?) I must report the problem was due to "old sloppy coding".

Here is what happened.

In my library, I coded:

oReport:End() after calling the report-preview process. Apparently, this was needed at one point many years ago.

Problem was, your preview processor ended the report from within the Play() method. The enhanced metafile was deleted during this process.

When I called oreport:end() the oreport:device:end() method attempted to delete the metafile (which was deleted from the ::play() - ::end() - ::endpage() method) and the resultant error occured.

Consequently, when I called oreport:end() there was no metafile to delete - hence the error.

I'm not sure why this "old sloppy code" of mine did not produce a problem with prior versions (fwh 2.5 and Harbour .44). But the important thing is I'm ok now.

Thanks for your continued service and excellent product. Sorry for "venting" off-line. Just goes to show, most computer "users" (me in this case) are inherintly lazy, but, if the developers ( you in this case )make the users think a bit on their own, the users usually figure it out on their own.

Sincerely,

don

Don Lowenstein
www.laapc.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
preview problems with fwh 2.6
Posted: Wed Oct 19, 2005 10:33 PM

Don,

Congratulations for solving it. We are happy to know its ok now.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion