FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PREVIEW MODAL
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
PREVIEW MODAL
Posted: Wed Nov 18, 2009 12:03 AM

I have a printing conversion issue going on related to MODAL PREVIEWS. In the 16 bit world, this code made the program stop until they user had closed the preview window: (I'm shortening it a bit).
REPORT oMyRep:oReport ;
FONT oMyRep:oFontArray[1],;
oMyRep:oFontArray[2],;
PEN oMyRep:oPenArray[1],;
oMyRep:oPenArray[2],;
CAPTION "Office Center For Windows Preview" ;
CENTERED ;
HEADER "Date: " + oMyRep:date_string;
CENTERED ;
FOOTER OemtoAnsi("Page: ")+str(oMyRep:oReport:nPage,3) ;
CENTERED ;
PREVIEW MODAL

At the point the preview screen in closed, the font and pen arrays are cleared. In 32 bit however, the program continues and doesn't much care about the MODAL statement. As a result, the pen and font variable are being cleared early and it's causing a problem. Is there an easy way to make the preview model again?

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: PREVIEW MODAL
Posted: Wed Nov 18, 2009 12:46 AM

At least in my version of FWH, MODAL is not a valid REPORT clause.

To make the preview modal:

oReport:oDevice:lPrvModal:=.t.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Re: PREVIEW MODAL
Posted: Wed Nov 18, 2009 02:22 AM

Thanks James. It worked like a champ.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: PREVIEW MODAL
Posted: Wed Nov 18, 2009 04:52 AM
James Bott wrote:At least in my version of FWH, MODAL is not a valid REPORT clause.

To make the preview modal:

oReport:lPrvModal:=.t.

Regards,
James


I think from version FWH 9.05 onwards, Report with PREVIEW automatically makes it MODAL.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion