Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print dos based report to laser printer ?
Message
 
 
To
16/05/2007 10:14:13
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:
01225983
Views:
27
>Hi Naomi
>
>my application is developed in foxpro 2.6 DOS.
>
>when i set Dot Matrix Printer as default printer in XP it prints well.
>but if set Canon BJC 2100SP ( inkjet printer ) as defult printer and it can't.
>
>i tried u r commands but not working.

Ok, the simple way:
lnPrinters = aprinters(laPrinters)
for lnI = 1 to lnPrinters
   if 'my known part of printer name' $ lower (laPrinters[m.lni,1])
        set printer to name (laPrinters[m.lnI,1])
        exit
   endif
next

report form ...
- from the top of my head, not tested

Or you may prompt user for the printer with GETPRINTER() command.

>
>
>>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform