Results 1 to 4 of 4

Thread: Printer Object (text positioning)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Ireland
    Posts
    9

    Question

    When I have a rich text box on the form, how can I place it on my Printer object so that I can control where the text in it is printed? I can control where graphics go using Printer.PaintPicture, but Printer.Print doesn't provide any way of positioning text. Would I be better off using a different control than a rich text box?

    Thanks for any help (desperate!).
    Patrick Scahill

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    You lot really have no idea how hard it is to use the printer in VB. I would look into a third party priniting control if i was you.

    This thread covers the basics though it does not take into account Bold, Italics and text centering etc.

    I am in the middle of writing an algorithim that will though.
    Iain, thats with an i by the way!

  3. #3
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Or even better check out This Tip. I'm ashamed to say that it pisses all over mine.
    Iain, thats with an i by the way!

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Ireland
    Posts
    9

    Wink

    Thank you very much for the help. Don't be so hard on yourself! That code looked very good. Will I be able to use these to control where the text boxes are placed on the printed document, or only how the text inside the boxes is printed?

    Thanks again.
    Patrick Scahill

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