Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print 2 copies of a report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00064699
Message ID:
00064898
Vues:
50
>>>>>>>>>>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??


They say that the _COPIES system variable is included only
for backward compatibility but you could do a:

PRINTJOB
_COPIES = 2
REPORT FORM ?? TO PRINT
ENDPRINTJOB



>>>
>>>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
Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform