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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TAMEDOS and FOXPRO2.6 Printing 3

Status
Not open for further replies.

abbas69

Programmer
May 5, 2006
8
GB
Dear Members

I have Foxpro 2.6 Dos application which I am trying to use under XP SP2, by using the TAMEDOS utility the screen looks goods and application works fine under XP

but when I am trying to send sometime to printer from the applcation nothing happens.
I am using Laser HP 2100 Parallel Port printer with XP.

Even if I am trying to send something from FPD command window nothing happens.

But If I send from TAMEDOS prompt like DIR > PRN the Printer works

Any Idea ??

 
I tried it but It didnt work.

Can we use a USB Printer installed in windows XP and use TAMEDOS.

SET PRINTER TO LPT1 will not work in this case. I have read that share the printer (USB) then use the NET USE command.

Can someone explain please

 
Do a search on TAMEDOS and you will find suggestions as to how to use non traditional printing ports (ie other than LPT & COM).
Getting back to your LPT1 printer
Try this simple test (1st and last lines deliberately repeated)
SET PRINT TO
SET PRINT TO
??? 'TEST PAGE'
??? CHR(12)
SET PRINT TO
SET PRINT TO


 
Dear Member

I have tried this command on HP 5p Printer that works fine,
but when I have connected HP2100 which is parallel printer as well it didnt work.

The problem is when I send the command like DIR > LPT1 from tamedos prompt the printer works but when I load the fox that HP 2100tn didnt respond at all

Thanks for answering the question
 
abbas69,
try search "printfile" from Peter Lerup
or simply output to text file and copy to print,
similarly as

report form myreport to file myout.txt noco
!cmd /c copy myout.txt lpt1 /b

Tesar

 
Thanks Tesar

This command works very very good and fast for that printer
but just want to know why the other commands
SET PRINT TO dont work

Thanks

 
Dear Tesar

Just want to know that can we print the same way to a USB Laser Printer which is Samsung 1710

My program is bascially FPD 2.6 DOS based and I want to run that under WindowXP Pro with a USB Printer attached the main thing is that Program uses 2 printers 1 for reports and 1 for printing labels

if the 1 printer is a USB samsung 1710 Laser will that command works any how
as the 2nd printer needs to connected to LPT as Epson LX300 for printing labels.

As before I was using 2 LPT Ports in a Windows98 Env.
LPT1 and LPT2 there was no problem in that Env

Now in Windows XP I have 1 USB and 1 LPT1. I am using TAMEDOS in Windows xp which runs ok and I can use the FPD2.6 with no problems
 
The Laerjet 2100n has an inbuilt netwoork interface.
Are you sure you are connected to the parallel port and the printer is configured to see the parallel port. You may have set up your network system to capture the LPT1 to the network printer.
 
DOS programs such as FoxPro 2.6 for DOS don't recognize newer concepts such as the Windows environment and USB communications ports. In such cases you need to use a second program to interface between the DOS and Windows environments.

I believe PrintFile can be set to monitor a folder or directory you specify and as soon as it sees that your DOS program has deposited there a file to print, it picks it up and sends it on to the appropriate printer. It's more of a work-around than a solution, but it works. Remember, Microsoft has wanted DOS to disappear for the past 15 years, so it didn't try to build in any "bridges" between DOS and Windows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top