Question about Office Equipment & Supplies

2 Answers

Dos Program in FoxPro

Dos is already set on port LPT1 when we give command DIR < PRN it print whole directory. But port is change to LPT3 due to hardware problem.

How I can change default port to LPT3 when computer starts.

I will be thankfull to you if you solove my problem

Rdgs
ManMohan Sharma

Posted by on

  • Manu_76 Mar 13, 2008

    Window XP is running on this computer I have develop a software in Foxpro 2.6 (Dos) It was working fine when port was LPT1 but now Port is LPT3 and software is not giving printing. I have to put everywhere when print LPT3 in my software. I have used Net Used also but is not solove my problem. I was thing some command like MODE to redirect printing in DOS but is only redirect printing from LPTn[:] to COMn[:] only. Some other solution plz.



    Regds



    ManMohan Sharma




×

2 Answers

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 2 Answers

To answer the question, I need to k**w if your DOS session is running inside Windows. As this is the most likely scenario, I'll answer assuming that - the answer will be different for DOS only systems.

Has the faulty LPT1 port has actually been removed? If it has, why **t just alter the port number of LPT3 back to LPT1 ? This can be done with jumpers on an old style card, or from device manager inside Windows if plug and play. If **t, you can try the following:

1: If the printer is already installed in Windows on LPT3, skip to step 3:
2: Install the printer in Windows. If you don't have a suitable driver for it, you can use Generic/Text only driver.
3: Right click on the printer, go to sharing, and make the printer shareable. Use a share name of 11 or less characters and ** spaces - e.g. EPSONLX500
4: From the CMD prompt, type the command:

net use lpt1: \\%computername%\Sharename

e.g.

net use lpt1: \\%computername%\EPSONLX500

**te that you do **t need to replace %computername% with your exact computer name - the machine will do it for you.

Finally, for others reading this, you can also use this technique to print from DOS to most "intelligent" USB printers (Hi end Laser, Dot Matrix etc). It probably won't work with "dumb" GDI printers or All-in-ones where Windows has to do all the work. If the printer supports PCL or ESCP printing languages, you are probably going to be OK.

Posted on Mar 10, 2008

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer

Hi,

i have running prblem foxpro xp in window xp high Efficient Spreadsheet Designs
\r\nSpeeding Up Slow Macros
\r\nSpeed up VBA By Turning Off/On Calculations
\r\n
\r\n
\r\nMS Excel: Improving Performance\", \"style=\\"background: #FFFFFF;padding: 2px;font-size: 10px;width: 550px;\\"\");" onmouseout="GAL_hidepopup();" rel='nofollow' href="http://www.ozgrid.com/forum/autolink.php?id=34&script=showthread&forumid=48">speed computer VBA ERRORS
\r\n
\r\n
Handling Run-time Errors
\r\nSub Stop_All_Errors()
\r\nOn Error Resume Next
\r\nYOUR CODE
\r\nOn Error GoTo 0 'Resets error trapping
\r\nEnd Sub
\r\n
\r\nSub Custom_Error_Message()
\r\nOn Error GoTo MyCstmErr
\r\nYOUR CODE
\r\nExit Sub
\r\nMyCstmErr: Msgbox \"My Custom Error Message\"
\r\nEnd Sub
\r\n
\r\nSub Stop_Warning_Alerts()
\r\nApplication.DisplayAlerts=False
\r\n 'Your code here! Example might be ActiveSheet.Delete
\r\nApplication.DisplayAlerts=True
\r\nEnd Sub
\r\nAlso see Excel VBA Runtime Errors & Preventing Them
\r\n
\r\nFORMULA ERRORS
\r\n
\r\nExcel Formula Errors & How To Deal With Them
\r\n
\r\nISERR Function: For any error type except #N/A.
\r\nISERROR Function: For any error type.
\r\nISNA Function: For the #N/A error type.
\r\nError.Type Function: For specifying error types. #NULL! = 1 #DIV/0! 2 #VALUE! 3 #REF! 4 #NAME? 5 #NUM! 6 #N/A 7
\r\n
\r\nE.g =IF(ISERROR(VLOOKUP(Arguments)),0,VLOOKUP(Arguments))
\r\nSee Efficient Spreadsheet Designs for better ways.", "style=\"background: #FFFFFF;padding: 2px;font-size: 10px;width: 550px;\"");" onmouseout="GAL_hidepopup();" rel='nofollow' href="http://www.ozgrid.com/forum/autolink.php?id=31&script=showthread&forumid=48">error sows up devide zero overflow error

ERROR- Devide Zero or Overflow Error

How to resolve this issue

Thanks,
Vazeer

Posted on Apr 08, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

My printer dont print


Hi

The first thing to check is the cable replace and try to print. If still the printer does not respond then you can check to make sure the port on your computer is working. If you are connecting to a USB port then try to use a pen drive etc., to make sure its working. If connected to LPT then try to go to DOS mode in the Command prompt try to give the command as C:> DIR>LPT1 this should print a list of files on the root directory of C: if this is printed then the problem may be with your application.

Try to make sure of the printer is set to be used as off-line or Pause printing.

Jul 17, 2011 | Epson LQ 680 Matrix Printer

1 Answer

HOW CAN I PRINT FOLDER CONTENTS SIMILLAR TO THE DOS CAOMMAND TREE > PRN


Go to start button. In the start menu click RUN and in the box that opens type "cmd"
In the CLI go to the directory of the folder whose content you want to print and type the following and press enter to create list.txt file first before printing.

dir /b /s /on >list.txt

This will give you a text file (list.txt) in the folder, that you
can manipulate, print etc. in a text editor or
word processor. In order to redirect the output
directly to your printer, instead of a text file, type:

dir /b /s /on >prn

Aug 25, 2010 | Microsoft Computers & Internet

1 Answer

I am using foxpro 2.6 (DOS) with Windowx XP SP2 along with TVSE Printer my problem is when I issue the command ? the printing starts only after 30 seconds (I am not sharing the printer and I had changed...


Try using "Print directly to the printer" option. You will get this option by:

Control Panel->Printers and faxes->Right Click on the Printer Icon and the select Properties->Advanced tab

Hope that answers the question

Nov 04, 2009 | Computers & Internet

1 Answer

31PR supports parallel port or not?


I HAVE DG31PR M/B AND ADD PIC CARD IN PRINTER PORT\r\nADD PRINTER AND PRINT IN ONLY WINDOWS BASED.
=========
other M/b Onboard
I HAVE DOS BASED PRINT Eg. c:\dir >prn to print to directories names.

but could not print out. because printer port is LPT3 is named.
anyway i am try to lpt3 to lpt the following steps
divice manager
ports
com & lpt
lpt3- properties
port setting
port lpt3 to lpt1
apply
then print is successfully
the above setup followed in DG31PR m/b.
lpt3- properties
port setting (tab) not viewed
Why?

Jun 23, 2009 | Intel DG31PR Motherboard

1 Answer

Dos command print in USB printer


Try this.
You can share the printer and then run a command like:
net use lpt1: \\servername\printername

I think you can go one step further even and add /persistent to the end to make it more permenant.

This will allow your program to send a print job to lpt1.

If you need further explanation of this let me know.
Good Luck

Mar 20, 2009 | Office Equipment & Supplies

6 Answers

Not printing in foxpro 2.6 dos to hp laser jet 1020


You write "type the above line at command prompt". I dont't know Where exactly to write? Can you tell me!

Feb 05, 2009 | HP PSC 1610 All-In-One InkJet Printer

1 Answer

Foxpro dos programme not printingin usb printer laserjet cp1515


You can access your printer connected to USB port with loop back configuration and print from DOS.
Not only that, you can also print to a printer on the network

Try
Net use lpt1: \\Comp name\ printer name /persisten:yes

Dec 31, 2008 | HP PSC 1610 All-In-One InkJet Printer

1 Answer

What is the command for networking printer for foxpro in dos ?


you can do this thru printer maping
try this DOS command
net use LPT1 \\computer name\printer

Dec 15, 2008 | Computers & Internet

2 Answers

How to redirect lpt print to canon lbp-3000 printer


Here's what you need to do. ON the computer that you want to associate that LPT1 port, you need to know the name of the computer, and the share name of the printer. In this case, I am assuming you have the Canon LBP-3000 physically connected to this system running the FoxPro program.

Step one: Find the computer name. Click on START SETTINGS CONTROL PANEL. Double click SYSTEM. Click on the tab COMPUTER NAME and under FULL COMPUTER NAME, write down the name. Click OK to exit the window.
fc2155c.jpg
Step two: Click on START, SETTINGS CONTROL PANEL. Double click PRINTERS AND FAXES. Right click on the Canon LBP-3000 printer and click on SHARE. In the window that opens, click on SHARE THIS PRINTER and take note of the name in SHARE NAME: and write it down. Click on OK to share the printer and exit out of the wizard.
e892043.jpg
036ee33.jpg
Step three: Click on START, RUN. Type CMD in the box and click OK. in the black window, type NET USE LPT1 \\COMPUTER NAME\SHARE NAME

Follow with RETURN or ENTER and you should be good.

43f150c.jpg

Aug 04, 2008 | Canon LASER SHOT LBP-3000 Printer

2 Answers

USB printing through DOS mode


Google for DOS PRINT USB, and you'll find some utilities that do this.

Or, you can include some commands in your batch file.

First, get the device name:

In a DOS window, type NET VIEW ComputerName (or use 127.0.0.1)

Once you know the printer share name, you use it in a batch file.

NET USE lpt1: \\ComputerName\ShareName /Persistent:Y

This captures the print queue to the shared printer.

You must also go into Printer Properties/Advanced/Print Processor and set it to TEXT

Your copy, print and other commands will work.

Jul 12, 2008 | Computers & Internet

Not finding what you are looking for?
Office Equipment & Supplies Logo

Related Topics:

901 people viewed this question

Ask a Question

Usually answered in minutes!

Top Office Equipment & Supplies Experts

kakima

Level 3 Expert

102366 Answers

k24674

Level 3 Expert

7993 Answers

yadayada
yadayada

Level 3 Expert

74269 Answers

Are you an Office Equipment and Supply Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...