borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Printing alternate lines grey)Next Topic (How to print a spreadsheet using VB?) New Topic New Poll Post Reply
AndreaVB Forum : Printing : DOS PRINTING IN VB
Poster Message
MIMRaja
Level: Guest


icon DOS PRINTING IN VB

I try the printing in VB to DOS . It is Vey Fast . But Printing
Only in Default Font  (ie Courier 10 cpi)

But I need to Reduce the font size and reduce the Page Height

Please Send the Response

06-04-2003 at 06:18 AM
| Quote Reply
andrea
Level: Guest

icon Re: DOS PRINTING IN VB

When you perform DOS printing then you have to send so called escape commands to the printer. These are some text strings starting normally with a chr$(27). The easiest is to embed them directly in the print file. The programming manual for your specific printer should contain the escape command sequence which will set the font to 10 cpi and set your desired page height.

[Edited by andrea on 23-04-2003 at 05:02 PM GMT]

23-04-2003 at 05:01 PM
| Quote Reply
AndreaVB Forum : Printing : DOS PRINTING IN VB
Previous Topic (Printing alternate lines grey)Next Topic (How to print a spreadsheet using VB?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder