Dec 222017
 
Visual Basic For Windows app that will quickly switch between two printers. Includes source only.
File TGLPRT.ZIP from The Programmer’s Corner in
Category BASIC Language
Visual Basic For Windows app that will quickly switch between two printers. Includes source only.
File Name File Size Zip Size Zip Type
TOGGLPRT.BAS 536 265 deflated
TOGGLPRT.DOC 1555 834 deflated
TOGGLPRT.EXE 7656 3172 deflated
TOGGLPRT.FRM 3789 2011 deflated
TOGGLPRT.MAK 66 55 deflated
TPCREAD.ME 199 165 deflated

Download File TGLPRT.ZIP Here

Contents of the TOGGLPRT.DOC file


TOGGLPRT (CR) JSS, Inc. 1992

This is just a little ditty to toggle quickly between two printers.

In my case, I have an onboard FAX which, under Windows, just looks
like any other print driver. So to FAX a documet from any Windows
application, one simply changes to the FAX printer and prints.

Since many Windows applications don't have a menu item allowing
you to reset the printer, this isn't always as easy as it looks.
Hence the utility TOGGLPRT.

The .ZIP file contains this .DOC file, The VB .MAK file, one each
.FRM file and .BAS file, and the resultant .EXE file.

YOU WILL NEED TO MODIFY THE SOURCE to reflect the two devices YOU
wish to toggle. You'll find the exact wording you need in the
WIN.INI file, under [devices]. For instance, for my HP-II I found:

[devices]
HP LaserJet Series II=HPPCL,LPT1:

You COPY that line, substituting a comma for the equal sign, and put
it ALL on the right side of a NEW LINE YOU CREATE:

[windows]
HPKey=HP LaserJet Series II,HPPCL,LPT1:
---------------------^-----------

Note that the new line goes in the [windows] section of WIN.INI

Do the same again for the second of the two printers you need to
toggle between, and you're all set. (The only other change would
be if your WIN.INI is in some directory other than C:\WINDOWS.)

I hope it's helpful to someone. So many on the forum have been so
helpful to me, through a thousand jerky questions.

Regards,

Steve Schiavo
Center Point, Texas


 December 22, 2017  Add comments

Leave a Reply