Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Printing on Laser Printer Through Foxpro 2.6 for Dos

Posted on 2006-05-12
5
Medium Priority
?
1,702 Views
Last Modified: 2009-04-29
Please send code for print a file on a laser printer (USB) through a programme written in Foxpro 2.6 for Dos.
0
Comment
Question by:mdasoft
3 Comments
 

Author Comment

by:mdasoft
ID: 16673070
pelase send code for printing with laser printer (USB) in foxpro2.6 for dos.
0
 
LVL 8

Accepted Solution

by:
doraiswamy earned 80 total points
ID: 16685312
Normally, Windows compatible printers do not print from DOS unless there is a specific way to set up the printer as a DOS compatible printer.

An option you have is to send the printer output to a text file in a folder. Then you can write a windows program to monitor the folder, and whenever a new file is dropped into it, it can send the output to your laser printer.
0
 

Expert Comment

by:TimeGhost
ID: 16721937
Here's what I'd do:

Share the printer and specify a simple share name, with just eight or less letters.  For this example, let's call it USBPRN.

Then run this from a command prompt:

net use LPT1 \\MyComputerName\USBPRN /persistent:yes

Note that MyComputerName is the "host" name for your computer.

Good luck!

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question