Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print dos based report to laser printer ?
Message
From
16/05/2007 11:16:33
 
 
To
16/05/2007 10:24:18
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Environment versions
Visual FoxPro:
FoxPro Dos
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01225962
Message ID:
01226031
Views:
50
Is the Canon a GDI or Host-based printer? If so, you will not be able to print to it from FPD26 possibly. You can try using net use LPT1: \\printersharename

but typically you cannot print to host-based printers (gdi) from dos-based apps. How is the printer connected? By USB or parellel? For testing purposes if the printer is not already mapped to an lpt port on the workstation, make sure the Canon printer is shared out as a printer and it's sharename is 8 chars or less (even if on the same workstation). Then map an lpt port on the workstation to that printer using NET USE. Then send the report to the lpt port from FPD26 using set printer to LPT1... (do not use the name keyword in FPD26)

See FAQ #15418


>in foxpro 2.6 your command is giving error
>
>error : invalid subscript reference.
>
>
>set printer to name (set('printer',3))
>
>
>
>>>Hi
>>>
>>>what parameters should i require to set for printing of dos based reports to HP laser printer/Canon BJC 2100SP.
>>>
>>>i have changed printer drivers in report environment.
>>>
>>>my command are
>>>
>>>set printer on
>>>set printer to LPT1
>>>
>>>report form myreport to printer pdsetup
>>>
>>>
>>>but nothing is going to printer....
>>>
>>>please tell me what settings r remain ?
>>>
>>>Anand
>>
>>set printer to name (set('printer',3)) && Assuming this printer is your VFP default printer
>>report form MyReport to Printer noconsole
>>
>>However, it would not guarantee the same speed for printing as it was in DOS mode.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform