Results 1 to 3 of 3

Thread: Printing bold and in bigger font

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    chennai
    Posts
    43

    Printing bold and in bigger font

    Hai everybody
    I am using the following print command to bill prints in my
    dot matrix printer.The application is similar to cash register printing where i do not wnat form feed to happen.Hence i have used the following print statment given by one friend here.It works fine but i wan`t to print some lines say the shop name and the total bill amount in bold and in bigger font than the ordinary lines

    dim p as long
    p=freefile
    Open "LPT1:" for output as p
    print #p, "This is line 1"
    print #p, "This is lie 2"
    close p

    Can anyone help it is very urgent.

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Two things:

    1. nobody can possibly help you unless we know the brand and model of the printer

    2. Early printers use escape sequences to change printing.
    Since I am making this up, because I have no idea what printer it is do not take this as anything more than an example of an escape code:

    Code:
    dim p as long
    p=freefile
    dim escape as Byte
    escape = 27
    Open "LPT1:" for output as p
    Print #p escape;"[G";  ' turn on bold
    print #p, "This is line 1"
    Print  #p,  escape;"[E";  ' turn off printing bold 
    print #p, "This is lie 2"
    close p
    Go online and lookup the printer manufacturer's website.
    They often have the Programmer's manual for the printer online.
    The shopkeeper should also have kept the manuals that come with his printer - they have the escape codes.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    chennai
    Posts
    43
    Hai
    I am using wipro Lx-800 80 column printer
    I will try your coding and tell afterwards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width