Print to File

At AJACOMP.COM, click support on the page upper left. Then USB Printer, Print to File info

A printer program is available for  Download, then save.  It works great under XP, it has not been tried it on newer versions. It is executed from the command line by typing P2F [filename] it captures the printing while it is loaded and stores it in the filename assigned to it in text format. To unload the p2f file and terminate it's capture, open Windows task Manager, highlight P2F, then click terminate on the bottom of page or reboot the computer.

P2F extends the printing ability  by capturing  print jobs and redirecting them to a file.  The file then can be opened with WordPad or another Editor and be printed to any printer installed on your computer.  Once 

USB Printer info.

 

There are 2 methods of connecting a USB printer, the first through a third party program purchase and the second through windows network.

Method 1

This is the fastest way.

Visit http://www.dos2usb.com/ for information on the DOS2USB program, you can try it before you buy it, below is a brief description. Download

DOS2USB: Capture  Print Job from any LPT or PRN and Redirect it to USB printer, GDI printer, Network printer etc.  Presently laser and inkjet printers come with connectivity to only USB ports.

DOS2USB extends the printing ability  by capturing  print jobs and redirecting them to windows printer irrespective of Printer types including USB Printers, Network Printers, Print-Servers, and PDF-printers. The job redirection works even if a printer is physically connected to the captured port, on any PC running Windows 95, 98, ME, NT, 2000, XP, Vista and 2003 (With Terminal Service Support).  By using DOS2USB you can print directly  to USB printer, Network Printer or any kind of printer. In another words, DOS2USB can print to any printer where WINDOWS can print. This utility helps to convert your USB Printer to LPT1, by giving gateway to the USB printer.

 

We've tried the program and it works very well but not perfect, which is no guarantee that it will work well for you.  It has many nice features like compressed print.  We noticed every now and then it give an additional linefeed which is common to virtually all inkjet and lazer printers. The USB company seems to stand behind their product.

The settings are, along with the defaults, start with Windows, Courier and 10 cpi (characters per inch)

Method 2

Try sharing you USB printer first. Then you map a port (LPT1) in DOS using you printer's sharing name (keep it short). Ex.:

C:\NET USE LPT1 \\YOURPCNAME\PRINTERSHARED

C:\NET USE LPT1 \\COMPUTER\CANON /PERSISTENT:YES

If you want the mapping to stay when you reboot, you can ad the following to the above line with a space after your printer's shared name:

/PERSISTENT:YES

at cmd prompt

>net use lpt1 \\pcname\printersharename /yes

>u will have to give ur printer
>a share name1st

(Method A) A simple method for Windows 2000 and XP only: This method works with any Windows 2000 or XP computer, but because it relies on the networking features in Windows, you must either (1) have a system that is always connected to a network (which can be an Ethernet or wireless network, or an always-on cable or DSL connection), or (2) install the "Microsoft Loopback Adapter" software which tricks your computer into using its networking features even if it is not actually on a network. You can by following instructions elsewhere on this page.

If you are not certain whether or not your computer is always connected to a network, first perform the steps listed below to see if they work correctly on your system. If they work correctly, then you do not need to install the Microsoft Loopback Adapter; if they do not work, then and perform the steps listed below.

If your computer is always connected to a network, or after you have installed the Microsoft Loopback Adapter, perform all the following steps:

Depending on your Windows configuration, use Start/Control Panel (or Start/Settings/Control Panel), and choose Performance and Maintenance, then System (or go directly to System), then to the Computer Name tab, and write down the "Full computer name" (not the Computer description or Workgroup or any other name). Click Cancel and close the Control Panel. For example, your computer might be named Roscoe. (If your network administrator hasn't forbidden you to change the name, you can use this dialog box to change the existing name to any name you like.)

Then use Start/Control Panel/Printers and Faxes (or Start/Settings/Printers and Faxes, or Start/Settings/Printers) and right-click on the name of your USB printer. Select Sharing from the pop-up menu. If your USB printer does not already have a sharename, give it one (with no spaces or quotation marks, and preferably only a few letters long, like dj990). Click OK and exit the Sharing tab and printer list (if it is visible).

Use Start/Run and enter CMD, then click OK or press Enter. A DOS-like command window will open. At the prompt, enter a command that looks like this (replace Roscoe with the full name of your computer and replace dj990 with the sharename of your printer!!):

net use lpt1 \\Roscoe\dj990 /persistent:yes

(If, and only if, you already have a printer connected to your parallel port, use lpt2 instead of lpt1 in the command.) Press Enter at the end of the command, and close the window. You may now print from WPDOS and the output will go to your USB printer. If, and only if, you used lpt2 instead of lpt1 in the command, then, before printing from WPDOS, use Shift-F7/Select/Edit and change the Port from LPT1 to LPT2.

Note: If you ever need to undo the assignment of lpt1 to your USB printer, so that you can use a printer connected by a printer cable to the parallel port on your computer, reverse the earlier net use command by entering this command:

net use lpt1 /delete

Setting DOS properties, and speed of execution with newer machines

The programs will run if you double click the icon, or type the program name at the DOS prompt. Nevertheless it is good practice to set up a ‘program information file’ (eg hjcfit.pif) on your machine. Most programs are fast enough that there is no need for this, but HJCFIT with a lot of data, and especially repeated HJCFITs to simulated data need all the speed you can get, so set the program properties as follows.

To set properties, find the program (e.g. hjcfit.exe) in Windows Explorer (or My Computer). Highlight the name and right click the mouse; choose Properties from the menu that appears. (In Windows 98, properties can be set for the DOS box itself, via its menu).

The properties window that appears has six tabs, General, Program, Font, Memory, Screen and Misc. Set them as follows.

General and Program should not need to be changed.

Font: click ‘both font types’. For font size, ‘auto’ is usually fine, but if you don’t like the look of the text on the screen, try something else.

Memory: normally set everything to ‘Auto’

Screen: click ‘window’ Note that a DOS program can be switched from a window to whole screen, and back, at any time, by ALT-ENTER. Note also that only text will run in a box. Graphics must always be whole screen.

Misc. This is the important sections for speed of executions. Check all the boxes apart from´’Always suspend’ and ‘exclusive mode’. If ‘always suspend’ is left checked, then the DOS program will not run in the background while you do something else. The most important setting for speed of execution is ‘idle sensitivity’ The default setting is usually about half way between low and high. However some machines, while doing lengthy calculations, will misinterpret the fact nothing is being printed on the screen, typed or the mouse has not being moved for a while. Since nothing worthwhile appears to be happening, so XP/2000 may shut down the process and begin to idle the CPU. The way to prevent this is to set ‘idle sensitivity’ to ‘Low’. The price you pay for speeding up in this way, is that the system uses almost all its time to number crunching, and if you try to run Powerpoint at the same time you will find it very slow.

Setting the program properties in this way will create a file called hjcfit.pif (‘pif’=program information file: file explorer is reluctant to show the .pif suffix –it appears as a shortcut to a DOS program).

If the program still runs too slowly, it may also help to set the priority of the process (when it has begun to fit) higher. This can be done by right clicking on the process NTVDM (the NT virtual DOS machine) in the task manager.

Method 2A

Setup your printer as shared. The following instructions work fine on a Windows 2000 machine (and also seems to cure a problem of improper page ejection that I had in AUTPLOT under Windows 2000). It does not affect normal Windows printing via the USB port.
(1) Go to control panel/printers and set the printer as shared. When you do this you have to give the printer a name e.g. dj995c
(2) Finder the server name of your machine -e.g. go to control panel/system/network identification tab and look at 'full computer name'.
(3) Go to the command prompt and type

net use lpt1 \\your_computer_name\dj995c /persistent: yes
(you substitute your own names of course)

After doing this printing works fine with the current versions (slightly modified) of all the programs. (When setting up the computer from the initial blue window, you leave the printer port set as the default, LPT1)

General Notes

(1) Some basic data about your machine are held in a file called C:\DCPROGS.INI, and this must be defined the first time (only) that you run a program. When you run any of the programs, a blue window appears at the beginning, asking if you want to keep the print-out in a disk file. The first time you run the program, choose option 4, set up this computer. Give the computer a name (this, together with date and time, appears on all the print files). Give the number of disk partitions (safest to say 26 for networked machines). State which disk partition the print-out files are to be written to. State the printer port is to be used; at present this must be LPT1 if you want graphical output (network printer is O.K. as long as it is called LPT1 or LPT1:DOS). And say whether you have a colour screen. This information is kept in a file called C:\DCPROGS.INI which is referred to every time you run a program (it is created the first time you do this, and is always in C:\ wherever you put the programs themselves. If you get an error message saying "File Specified STATUS= 'NEW' already exists", then delete Dcprogs.ini and try again.
Since March 1998, a new pale blue display appears, below the dark blue window, which shows the name of your machine, the name and location of the print-out file for the current program, and the operating system (Windows 95, Windows 3.1, DOS etc). If any of these are wrong, then hit 4 to re-do the set-up. This will be needed the first time you run the new version because you have to say which operating system you are using (some operations behave differently under Win3.1 and Win95 for example).

(2) Programs that use the CED1401 real time interface (CJUMP, CONSAM) require some special consideration, and details are given in Further notes on programs that use 1401-Plus Interface (http://www.ucl.ac.uk/Pharmacology/dc-bits/notes.html).

Home