Results 1 to 3 of 3

Thread: Printing text and making it fit

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    29

    Angry

    Hi,

    I'm trying to print text (yes, text-only) to a page, but the text needs some formatting. Here is a sample code I have:

    Code:
    Printer.<font color="#00007F">Print</font> "Blablabla: "
    Printer.FontBold = True
    Printer.<font color="#00007F">Print</font> CommandNumber & vbCrLf & vbCrLf
    Printer.FontBold = False
    The problem with that snipet of code is that it prints "blablabla: " on one line and then the number in bold on another line (which is not what I was looking for). It would also be great to be able to change the font in the same line of text.

    Are there methods to find out if you skipped a page, or should I check the Printer.CurrentY and see when I'm close to the next page in order to initiate a NewPage?

    Thanks.

  2. #2
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Lightbulb

    Im not exactly sure what you are doing, but, if you want to print text the way I normally do it is:

    Printer.font.bold = true
    Printer.Print "Try this"
    printer.font.bold = false
    print.print "Number here"
    EndDoc
    Matt

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    29

    Question

    Printer.font.bold = true
    Printer.Print "Try this"
    printer.font.bold = false
    print.print "Number here"
    EndDoc
    Yes, but this will print Try this and Number here on two different lines. I want to be able to print them on the same line!

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