As promised, I checked all suggestions and here is what finally did it:
   
  set reportbehavior 80
   
  ** 1st preprinted document
   
  set printer to name \\printserver\inv1
  _pcopies = 3
  _peject='none'
  printjob
  go top in mycursor 
  report form \\server\rep1 to printer noconsole 
  =inkey(2)
  endprintjob
  ** second preprinted document
  set printer to name \\printserver\inv2
  Printjob
  go top in mycursor
  report form \\server\rep2 to printer noconsole 
  =inkey(2)
  endprintjob
   
  and so on
   
  The trick is to make the printer wait 2 seconds after printing the first 
report, then iterate again through the loop and print the report again, until 
the printjob is finished (determined by the _pcopies system variable setting). 
This probably has to do with buffers, processor speeds and whatever. There is 
no need to set printer off and on as I was doing .
   
  After that, the program captures the second printer and processes the second 
report in the same manner. In my real life application, this was done with all 
five printers with no problems. BTW, make sure your preprinted form is of the 
right thickness, because if the paper is too thin, some pages will be stuck and 
you will loose the printing sequence.
   
  Someone said he did not know about printjob - endprintjob. I knew about it 
from the days of FP DOS, but never really paid attention to it. I tried it now, 
in my desperation, and found that it works very well. I usually use a for - 
next loop to do the same and instead of _pcopies use a variable. But the 
printjob construct is good too.
   
  Thanks again to all who helped me
   
  Pamechu Umgobwe
   


Pamechu Umgobwe
                
---------------------------------
Now you can have a huge leap forward in email: get the new Yahoo! Mail. 

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to