>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))
>>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