Results 1 to 4 of 4

Thread: chnage font

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    chennai
    Posts
    43

    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.

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    chennai
    Posts
    43
    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.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    repost this in the General VB forum and you will be more likely to receive an answer
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width