![]() Need to print a data dump to the dot matrix printer? It needs to be attached to port LPT1 as well. Need to print a check to the laser printer? It needs to be attached to port LPT1. Two different parallel printers are used with this program, but the program prints to a single port only and there is no option to change this behavior. Printing from the program presents the biggest challenge. A bit of a compromise to be sure, but the machines will be upgraded to 64-bit Windows 8.1 when the DOS program, which runs from the secondary domain, is retired. cmd file that fires up the program is placed manually on the clients, also on the primary domain. Until then, a share to the program is mapped on two 32-bit client machines from the primary domain with Group Policy. ![]() The 16-bit DOS program we need to work with resides on a 32-bit Windows 2003 server that will soon be removed. Advice on how to get them working properly on a modern computing platform is rampant on the Web. Print #1, Worksheets("STRINGS").Cells(rows, 1).ValueĭOS programs are still used in the world of business. Now you can easily print in VBA (tested with Windows 7 64-bit and ZM400 Zebra printer) Open "\\Kb\ZM400" For Output As #1 'Kb = computer Name ZM400 = Shared printer nameįor rows = 1 To 37 ' send the first 37 rows of ASCII codes from the worksheet "STRINGS" With few rows of code you will be able to send ASCII codes to the printer as used in the past. Assign a LPTx: port as explained before by command line (this is for every SW that needs an old LPT).Install the Microsoft Loopback adapter on a fixed unused IP address (otherwise your printer will be not visible when the cable is disconnected).Share the Generic /Text Only printer in order to make it visible easily in VBA.Install a Generic / Text Only driver and change the port to the same logical USB port as seen on point 1. ![]() ![]() Change the driver's port to FILE (and free up the USB port).Install the USB printer with its drivers (just to find on which USB port is connected).Here we are speaking about using a very old legacy software on hardware with USB only connections. Using a USB to parallel adapter doesn't make any sense. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |