Printing on Laser Printer Through Foxpro 2.6 for Dos

Posted on 2006-05-12
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.
Question by:mdasoft

    Author Comment

    pelase send code for printing with laser printer (USB) in foxpro2.6 for dos.
    LVL 8

    Accepted Solution

    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.

    Expert Comment

    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!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
    Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now