|
-
May 16th, 2002, 05:36 AM
#1
Thread Starter
Member
chnage font
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.
-
May 16th, 2002, 07:08 AM
#2
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.
-
Jun 4th, 2002, 07:59 AM
#3
Thread Starter
Member
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.
-
Jun 4th, 2002, 08:51 AM
#4
repost this in the General VB forum and you will be more likely to receive an answer
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
|