Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual FoxPro and USB devices 1

Status
Not open for further replies.

bobby123

Programmer
Jun 6, 2000
2
US
I am having a problem with getting my application to communicate with a USB printer.&nbsp;&nbsp;<br>1. Other programs on the same computer have no problem.<br>2. When the printer is in parrallel mode, it works fine.<br>3. When I try with my app., I can preview the report on screen, press the PRINT icon, and nothing happens. No error, no nothing.&nbsp;&nbsp;<br>4. When I open the driver, it shows nothing in the queue.<br>H--E--L--P
 
Hi bobby123,<br><br>&nbsp;&nbsp;I have never had the 'privledge' of working with a printer installed on a USB port and dont have access to one to test on. I wouldnt think it would matter if the printer is on a USB or parallel, as long as it is correctly configured in Windows because VFP (as do most apps) relies on the Windows Print Manager.<br>&nbsp;&nbsp;Have you used the printer functions (aprinters(), getprinter(), printstatus()) to conform that vfp recognizes this type of device?<br>&nbsp;&nbsp;Have you tried SET PRINTER TO NAME myusbprinter and then REPORT FORM TO PRINTER? If so, what was the result?<br><br>Also out of curiousity, can you print something from VFP file menu to that printer? I presume you should be able to if the printer is configured correctly in Windows.<br><br>Jon
 
I've had the same difficulty.&nbsp;&nbsp;The printer is a HP970e or something like that.&nbsp;&nbsp;I've had problems printing from FPD2.6, VFP5.0, & VFP6.0.&nbsp;&nbsp;I've no fix other than to put the printer back on LPT1.&nbsp;&nbsp;I SUSPECT that the problem lies in:<br>&nbsp;&nbsp;&nbsp;&nbsp;set printer to LPT1<br>On a USB printer, the LPT1 port is not actualy captured and will go nowhere.&nbsp;&nbsp;The question is what to
 
Hi Mis,<br><br>&nbsp;&nbsp;Just wondering why you are using SET PRINTER TO Portname instead of SET PRINTER TO NAME PrinterName?<br>&nbsp;&nbsp;I dont use FPD, but I do use VFP and I believe it is better practice to use the latter when specifying a printer.<br><br>Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top