General information
Category:
Reports & Report designer
>>>>>>>>>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only