I am using the following print statements
dim p as long
open "lpt1:" for output as p
print #p, "This is line 1"
close p
I want to print in a different font size.(ie in small font).
kindly tell me.
Printable View
I am using the following print statements
dim p as long
open "lpt1:" for output as p
print #p, "This is line 1"
close p
I want to print in a different font size.(ie in small font).
kindly tell me.
I am sure you don't use this code in VB.NET, because it wouldn't work. I think you will have more success in the General forum.
But if you use this code from vb6, I guess you use it to bypass the printer driver. And this means you have to send printer stearing commands (is this correct english?)
Anyway, you can only use fonts that are supported by the printer. Al other fonts (like windows fonts) can't be used.
The commands to send to the printer to change the font, or font properties, depend on the specific printer you use. You should be able to find them at the printer manufacturer's website, or in your printers manual.
Sorry that code is not for vb.net.It is for VB6.I have written it in a wrong topic.Icould get the fonts to be bigger by writting
print #p, chr(14) & "This is bild line"
I want to print in a small font.Do anybody know that.
repost this in the General VB forum and you will be more likely to receive an answer