[futurebasic] Re: [FB] problem with CLEAR LPRINT

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2006 : Group Archive : Group : All Groups

From: Stu Cram <stu@...>
Date: Mon, 6 Nov 2006 08:55:04 -0600
Alain - I've been doing the page eject just as George B described for  
several years now and have not had a problem. Haven't tried spacial  
sized pages though. Somewhere in the past there was a note that CLEAR  
LPRINT and CLOSE LPRINT worked best (only) after re-routing back to  
the screen. Normally I put his two snippets a small functions:  
PrintPage( endReport )  where endReport is either 0 or 1 to indicate  
time to stop(1) or to continue(0).

-Stu

On Nov 6, 2006, at 8:43 AM, <gbeckman@...> wrote:

> Alain,
>
> This has always been a confusing issue for me.   However, someone,  
> way back... perhaps Staz... told me how to eject a page and close  
> printing.
>
> I am writing this with the full knowledge that
> 1) I don't really understand all this
> 2) I will be told that this is wrong
> 3) a big discussion about conflicts in the help and manual will be  
> resurfaced.
>
> All I can say, is for at least 3-4 years I have been doing this and  
> hundreds and hundreds of users are not getting a crash.
>
> That being said, I do have a 10.4.8 user who has a Preset for  
> special layout 1/2 size (2 pages on one sheet) and he is getting a  
> crash at each printing on one of my many reports.   That one is so  
> far beyond me I have little hope of understanding.
>
> Here is how I do it:
>
> this is the way to eject a page in a multipage report
>
> ROUTE _toScreen
> CLEAR LPRINT
> ROUTE _toPrinter
>
> and this is the way to stop printing:
>
> ROUTE _toScreen 'redirect
> CLOSE LPRINT
>
>
>
>
>>
>> From: Alain Wrobel <alain.wrobel@...>
>> Date: 2006/11/06 Mon AM 07:11:46 EST
>> To: futurebasic@...
>> Subject: [FB] problem with CLEAR LPRINT
>>
>>> Hello,
>>
>> Have I missed something ?
>> It seems that now (FB 4.2  0SX 10.4.8) CLEAR LPRINT has to be
>> followed by ROUTE _toPrinter, if not, crash is assured.
>>
>>
>> Alain.
>>
>>
>>
>> window 1
>> dim i
>> def lprint
>> long if prcancel=0
>> route _toPrinter
>> for i=1 to 5
>> print "page"i
>> select i
>> case 5
>> close lprint
>> case else
>> clear lprint
>>
>> 'route _toPrinter'uncomment to avoid crash
>>
>> end select
>> next
>> end if
>> route _toScreen
>>
>>
>> -- 
>> _________________________________________________________________
>> A. Wrobel * GREGUM-UMR ESO, Université du Maine/CNRS *Tel: 
>> 02-43-83-35-44
>> _________________________________________________________________
>>
>>
>>
>> --
>> To unsubscribe, send ANY message to: futurebasic- 
>> unsubscribe@...
>> om
>>
>>
>>
>
> Best Wishes,
>
> George
> gbeckman@...
> http://www.pggp.com
>
> --
> To unsubscribe, send ANY message to: futurebasic- 
> unsubscribe@...
>
>