Ted Roche wrote:
A client has a situation where they want to print two different preprinted
forms and collate the result, something like:

Tray 1: blue copy of paycheck
Tray 2: canary statement of earnings

The well-known VFP trick is to establish two different reports and in
Windows create two different named printer profiles and then alternate:

DO WHILE NOT DONE
  REPORT FORM Paycheck TO PRINT PRINTER 'BlueTray' NEXT 1
  SKIP -1
  REPORT FORM Statement TO PRINT PRINTER 'CanaryTray' NEXT 1
ENDDO

or similar pseudo-code. Works great, right up to the point that it don't.

The statement is an intricate document with lots of curliques and takes
longer to print than the paycheck, so what we end up getting out of the one
output tray is:

Paycheck1
Paycheck2
Statement1
Paycheck3
Statement2
Paycheck4
Paycheck5
Statement3

and so on. Since the two printer queues are unrelated, there's no
coordination between the two.

A search of the Leafe.com archives and Fox Wiki didn't turn up anything
promising.

Before I hack at this myself, wondered if anyone else had run into the
problem and found an elegant solution, like using PRINTJOB or something.

VFP9SP2+, Windows 7 and later, printer of unknown brand.

Done something similar with an invoice run with a couple of different layouts going to the same printer. One duplex one not. On the machine that does the printing I have 2 versions of the printer Canon 5235 (normal) and Canon 5235-2 (duplex). I just use some fox code to fill in the tag1 with the correct details, then report format ... as normal. As they both go to the same printer they come off in the right order. Maybe you could have 2 versions of the same printer, one to one tray and
one to the other.

HTH

Peter


.

This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

www.whisperingsmith.com

Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 
Fax:0161 831 3715
London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** 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