Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Changing the size of the font when printing from the port

Status
Not open for further replies.

AmazingSpiderman

Computer
May 14, 2004
2
0
0
MX
Hi, I'm trying to change the size of the font when i send the information to the printer, my code is:
Code:
Open Puerto For Output As #fNum 

    If Err = 0 Then        
        Print #fNum, strCadena
        If bClosePortAfterPrint Then Close #fNum        
    End If

where "Puerto" is the printer port, (LPT1, mapped to a network printer), and what i'm looking for is for a common command to tell the printer to make the font condensed.

I won't use the printer object, because it is to slow, even i know that with that object i can use Printer.fontSize=10, or something like that. Printing from the port is fast, and for my application, i need to print fast, so, if you know if exists a common command to tell every printer (there will be 44 dot-matrix printers, and maybe differents) or if there is another way to print fast and changing the size of the font, please let me know

Thanks in advance
 
Replies continue below

Recommended for you

Since you're printing directly to the port, you might sending the proper escape sequence to the printer that will cause the proper font setting change. You'll have to consult the manual for the printer to find out which escape sequences it will recogonize to perform the desired action.
 
Status
Not open for further replies.
Back
Top