Discussion:
Formating in DOS
(too old to reply)
Niraj Ranka
2007-06-05 07:16:39 UTC
Permalink
Hello,

Is their any way to increase font size in Dos Printing using VB6

I tried using Print #1, Space(20) & Chr(27) & Chr(71) & Chr(14) & _
Chr(27) & Chr(45) & Chr(1) & _
"NORTHWIND PRODUCTS REPORT" & _
Chr(27) & Chr(72) & Chr(20) & _
Chr(27) & Chr(45) & Chr(0) '//Bold Off

But unalble to inrease the size of font.

Thanx in advance.
Niraj Ranka
Ethan Winer
2007-06-05 18:13:02 UTC
Permalink
Post by Niraj Ranka
Is their any way to increase font size in Dos Printing using VB6
Wrong Newsgroup. This group is for the older DOS version of VB.
DK
2007-07-10 16:17:38 UTC
Permalink
Post by Niraj Ranka
Hello,
Is their any way to increase font size in Dos Printing using VB6
I tried using Print #1, Space(20) & Chr(27) & Chr(71) & Chr(14) & _
Chr(27) & Chr(45) & Chr(1) & _
"NORTHWIND PRODUCTS REPORT" & _
Chr(27) & Chr(72) & Chr(20) & _
Chr(27) & Chr(45) & Chr(0) '//Bold Off
But unalble to inrease the size of font.
Thanx in advance.
Niraj Ranka
The only way I found to do this was to have a .bat program send a text
file to the printer. Where the text file has embedded formating codes.
H-Man
2007-07-10 18:04:51 UTC
Permalink
Post by Niraj Ranka
Hello,
Is their any way to increase font size in Dos Printing using VB6
I tried using Print #1, Space(20) & Chr(27) & Chr(71) & Chr(14) & _
Chr(27) & Chr(45) & Chr(1) & _
"NORTHWIND PRODUCTS REPORT" & _
Chr(27) & Chr(72) & Chr(20) & _
Chr(27) & Chr(45) & Chr(0) '//Bold Off
But unalble to inrease the size of font.
Thanx in advance.
Niraj Ranka
For Epson emulation look at the website below and look specifically at the
fonts sections (point size and pitch). Do a Google search if using a
printer with different emulation or command set.
http://webpages.charter.net/dperr/links/esc_p2.htm

Are you writing the strings to a file and then dumping the file afterwards?
I'm not sure you can open a LPT and use Print # on it in VB6, at least I've
never seen it. I'd be interested in knowing exactly how you're
accomplishing this.
--
HK
Loading...