PREVIEW MODAL

PREVIEW MODAL

Postby MichaelMo » 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?
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: PREVIEW MODAL

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: PREVIEW MODAL

Postby MichaelMo » Wed Nov 18, 2009 2:22 am

Thanks James. It worked like a champ.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: PREVIEW MODAL

Postby nageswaragunupudi » Wed Nov 18, 2009 4: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:oDevice: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
User avatar
nageswaragunupudi
 
Posts: 10482
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 102 guests