Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print 2 copies of a report
Message
De
10/12/1997 10:45:49
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
 
 
À
10/12/1997 01:02:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00064699
Message ID:
00064987
Vues:
95
>>>>>>>>>>>I use vfp 3.0, I would like to print 2 copies of a report in 1 command.
>>>>>>>>>>>
>>>>>>>>>>>Now I use the REPORT TO PRINTER command 2 times.
>>>>>>>>>>>
>>>>>>>>>>>I would like to set the number of copies to 2 and then give the REPORT TO PRINTER command 1 time.
>>>>>>>>>>>
>>>>>>>>>>>How can I accomplish this?
>>>>>>>>>>>
>>>>>>>>>>>Bas Elbers
>>>>>>>>>>
>>>>>>>>>>Open FRX table manually and set COPIES=2 in field 'Expr' in first record. Make backup first!
>>>>>>>>>
>>>>>>>>>Is this the approach to use in VFP 5.0 and 5.0a as well?
>>>>>>>>
>>>>>>>>Why not?
>>>>>>>
>>>>>>>I haven't tested this in 5.0 but in 3.0 when setting the # of copies to 2
>>>>>>>in the printer dialog box, I still only got one copy. I'm wondering if this
>>>>>>>has been fixed in 5.0
>>>>>>
>>>>>>but i'm speaking about manual changing of FRX. Actually, I tested in 3b, saw that 'print setup' really fails here, and therefore tested manual change and it worked.
>>>>>
>>>>>But the manual method does not lend itself to the end user. If I'm to provide the
>>>>>ability to print multiple copies to the end user I must...
>>>>>a) programmatically change the field you referenced above
>>>>>b) provide another text box to capture the number of copies the user wants
>>>>>c) train the user *not* to use the "copies" box in the standard pringer dialog box
>>>>>
>>>>>seems like there should be a better way...
>>>>
>>>>How about sending an eascape sequence to the printer (??? CHT(27) + esacpe sequence for # of copies of print job??
>>>>
>>>>Thanx!
>>>>
>>>>Tony Miller
>>>>Vancouver, Wa
>>>
>>>Then I would need a 'printers' database to hold the codes (and a maintenance option).
>>>We did this in my Clipper days but just seems like a big step backwards. Is there no
>>>API function or (better yet) an obscure VFP function available?
>>
>>Isn't ther like a _ variable that Foxpro users in these cases?? Like _Copies??
>>
>>Thanx..
>>
>>Tony Miller
>>Vancouver, Wa
>
>Yes there is... _PCOPIES
>
>It goes something like this...
>
>_PCOPIES = nCopies
>PRINTJOB
> < Commands >
>ENDPRINTJOB
>
>But this still ignores the "# of copies" box in the printer selection dialog.
If you use this method to print multiple copies, should you set _PCOPIES back to 1? Or does ENDPRINTJOB automatically set it back to a default state?

Shane Gilbert
--Shane
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform