CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Location
    Singapore
    Posts
    42

    Printing Problem. Urgent...

    Hi,
    Please can someone tell me what's the command to a printer if I want different fontsizes to be printed in a SAME line!? This means, for "999888", I want "999" to be fontsize=12 and "888" to be fontsize=20.

    Urgent. Thanks.

    Gary


  2. #2
    Join Date
    Oct 1999
    Location
    S.W. Wyoming
    Posts
    25

    Re: Printing Problem. Urgent...

    ¡No problema!

    Simply print each portion of the line with a trailing semi-colon and the appropriate font size property set. Example:


    Printer.FontSize = 12
    Printer.print "999";
    Printer.FontSize = 20
    Printer.print "888"




    The only "gotcha" is to be sure to use the trailing semicolon so you don't get a linefeed between each Print statement.


    Reid Allen Robbins
    2205 E. Teton Blvd.
    Green River, WY 82935

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

Featured