Printing multiple copies from @Key processing

Richard Kreiss rkreiss at gccconsulting.net
Wed Aug 1 10:00:08 PDT 2018


I have done this for clients and for a windows system There are 2 options:

1. Print directly from the record using @keyP 
2. Select a list of item to print from a print program

Option 1 a listbox() with the option for the number of copies to print.  In some cases there is a listbox() of forms that can be printed and then the number for forms.  Using a loop, the number counter is reduced by 1 each time the form command is issued. 

Option two runs from a library routine which does a browse lookup to the items to be printed.  The user then has the option to select how many copies to print and also which bar code label format to print.  As there are 5 different bar code label formats which may be printed, along with the form itself, the program does a system call for each print job the order numbers are entered into an array and used for selecting the proper order to print.    I could have created a batch file with the command lines for each print job and just had one system call (this is an after-thought).

If you are selecting and running from a browse lookup, you might want to consider adding a one character field to be filled when the record is selected for printing.  This field would be cleared after the last print job is run.  You could even have a second browse which only displays the records for printing.  This would give the user an opportunity to remove any record not to be printed.  Then the print job can be run.  

You may want to consider running this from @once or @menu prior to actually getting to any record in the file.  Prior to selecting any records use an input popup ("18","-1") qq "Enter the Number of Copies top Print -> ", then display your browse.




> -----Original Message-----
> From: Filepro-list [mailto:filepro-list-
> bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Boaz
> Bezborodko via Filepro-list
> Sent: Tuesday, July 31, 2018 9:04 PM
> To: Filepro-List at Lists. Celestial. Com <filepro-list at lists.celestial.com>
> Subject: Printing multiple copies from @Key processing
> 
> I'm setting up a routine to print multiple copies of record using @Key processing.
> I use POPUP UPDATE to bring up a screen in which to enter the number of copies
> needed.
> When hitting the ESC-key the routine loops through the set number of times
> using FORM "xxx" to print the form.  But it doesn't print the forms  right
> away.  First the cursor goes to the first record on the screen (there is no cursor
> path set), then I have to hit ESC twice more to exit the record.  Only then does it
> do the printing.
> If I don't do a POPUP UPDATE  and only execute the FORM "xxx" and END, the
> record is exited and the one copy of the form prints right away.
> How do I get the program to exit the after the first ESC out of the POPUP
> UPDATE?
> 
> One other point:  When I escape out of POPUP UPDATE the routine has a
> CLEARP before the END, but the popup doesn't disappear before going to that
> first record.
> I'm running on Windows Filepro, 5.6.10D9
> 
> Thanks
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 15314 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180801/17d768d7/attachment.bin>


More information about the Filepro-list mailing list