Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Windows vs. Printer Control Codes  (Read 2595 times)

0 Members and 1 Guest are viewing this topic.

takabyte

    Topic Starter


    Newbie

    Windows vs. Printer Control Codes
    « on: May 08, 2008, 02:52:42 PM »
    In DOS-based programs, you can send control codes to a printer to change fonts, skip to a specified line, etc. You can also have such codes in a text file and copy that file to the printer, using DOS COPY command, and the codes will be properly recognized and executed by the printer. But if those same codes are sent to the printer through Windows, whether by using Windows to print the text file mentioned above from, say, Notepad, or whether from a VB program, the codes are not interpreted as printer controls at all, but simply printed as though they were text. Why is this, and is there a way around the limitation in Windows?

    Dias de verano

    • Guest
    Re: Windows vs. Printer Control Codes
    « Reply #1 on: May 08, 2008, 03:40:12 PM »
    You seem to be talking about those ancient devices like Epson dot matrix printers, which can be run as either character (text) where the fonts are stored in a ROM in the printer, or in raster (dot-addressable) mode.  In general, printers that are run from Windows are run in raster mode rather than character mode. That is, when you print text from Notepad, the printer driver sets the printer in graphics mode, (which means control codes are no longer recognized, for obvious reasons) and sends the printer the necessary dot data to print the characters.

    To get character mode printing, use control codes, etc, you can install the Windows generic text-only printer driver. (Plenty of articles you can Google for.)




    takabyte

      Topic Starter


      Newbie

      Re: Windows vs. Printer Control Codes
      « Reply #2 on: May 08, 2008, 04:44:38 PM »
      dias de verano, muchas gracias, mi amigo!