|
-
Aug 14th, 2003, 05:18 AM
#1
Thread Starter
Member
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.
-
Aug 14th, 2003, 09:57 AM
#2
Frenzied Member
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.
-
Sep 23rd, 2003, 03:49 AM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|