Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB printer script to VFP
Message
From
21/12/2006 18:10:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01179636
Message ID:
01179698
Views:
11
>>>>Thanks Borislav, In the cashdraw section, this is the only code mentioned. Can you help me with how to get printer object or a little sample how to use this code ?? Thanks.
>>>>
>>>>*This is not the full code, this code can be used directly in VFP, if you know how to
>>>>*get Printer object (except Printer.Print("A")) :-)
>>>
>>>If Printer is standard VB object maybe you could use this:
>>>
>>>SET PRINTER TO NAME (name of the printer goes here)
>>>SET PRINTER FONT TO "FontControl", 9
>>>SET PRINT ON
>>>? [A]
>>>SET PRINT OFF
>>>[/code]
>>>
>>>
>>>But I am not sure at all.
>>
>>I think a
>>
set printer to
>>may also be required - that would tell Windows the printjob is completed, equivalent fo printer.close().
>
>I remember these commands only from my CLIPPER days :-)
>In CLIPPER there were only SET PRINTER ON and SET PRINTER OFF, but you are right of course :-)

I also had to dig this out somewhere from my FPD2.6 days... actually, the only POS printer I had to wrestle with was in a bar. Not that wrestling it was that hard - I sat on a barstool on a sunny morning in a shiny new restaurant, had excellent coffee on the house, and eventually got the damn thing to spit bills and kitchen notes :).

back to same old

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

Click here to load this message in the networking platform