win98
fpw26
lpt1 old ibm proprinter
lpt2 old ibm proprinter
usb new hp officejet v40 set as default
can not print to usb at all
when printing to lpt1 or 2
get messeage ( an error has occured in your program) click on ignore will then print ok
USB didn't exist when FPW was written and it only recognizes the old DOS ports. Unless you can "map" this port to one of those, you may want to consider upgrading to VFP.
BUT my own personal development PC has a USB printer and works fine with Foxpro 2.6 for Windows - not only interactively (command window, etc.) but also when I run the applications that I develop.
The trick within your applications is to make certain that there are no SET PRINTER TO ..... commands within your code.
You might want to look at:
thread182-321536
thread182-321163
win98
fpw26
lpt1 old ibm proprinter
lpt2 old ibm proprinter
usb new hp officejet v40 set as default
can not print to usb at all
when printing to lpt1 or 2
get messeage ( an error has occured in your program) click on ignore will then print ok
>
>
I do not have 'set printer to' in any of my code.
lpt1 printer name is 'PICKUP'
lpt2 printer name is 'INVOICE'
pickup slip prints to lpt1, invoice to lpt2 I want all other reports to print on the USB printer which is the default printer.
It would appear you need to clear the default printer information out of your .FRXs (actually .FRTs). See thread182-38172 for details on the technique.
win98
fpw26
lpt1 old ibm proprinter
lpt2 old ibm proprinter
usb new hp officejet v40 set as default
can not print to usb at all
when printing to lpt1 or 2
get messeage ( an error has occured in your program) click on ignore will then print ok
>
>
I do not have 'set printer to' in any of my code.
lpt1 printer name is 'PICKUP'
lpt2 printer name is 'INVOICE'
pickup slip prints to lpt1, invoice to lpt2 I want all other reports to print on the USB printer which is the default printer.
>
>
I have been trying all sorts of sugestions, but still can not get fpw to print to the usb printer. As sone as I select the usb printer BOOM an error has occured in your program. Then I have to do (ctrl+alt+del). However if I go to the command window and enter (display memory to printer) it works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.