Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send printer codes in Reports
Message
From
14/07/2008 23:25:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
14/07/2008 17:04:01
Victor Chigne
Inteliventas
Peru
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01331226
Message ID:
01331317
Views:
18
>Hello all:
>
>I'm printing tickets in a EPSON TM U210, using Benatech drivers (better than Epson ones). My tickets are grouped and at the end of each group the report cuts the page (That's OK, I instructed the group to begin in a new page).
>
>The problem is that the first group isn't cut. The secont and all the other are cut.
>
>The command to send a manual cut is CHR(27)+CHR(109). How can I sent those direct codes to the printer on each group repetition?

Create a field at the end of the group, and put CHR(27)+CHR(109) as the expression to print. Then be very careful with the Print When expression to make sure the field prints only when it should - maybe manipulate a report variable. One way would be to have a variable a copy of the group expression, and print these two characters only when it's still different from the group expression - because you'll set it equal in a call to _vfp.docmd("yourvar=groupexpr") from the group's footer.

Now if I have misnamed any of the features here, I hope somebody else will jump in. I don't do this too often - last VFP report was years ago - so I know this stuff on principle and memories, but can't remember the names of things you use.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform