Results 1 to 4 of 4

Thread: Printing Center Align

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Greece
    Posts
    11

    Unhappy

    You all have seen the center aling in Microsoft Word.
    How can i do the same and then print a string from a textbox or richbox?
    Charis from GRE
    VB6 Enterprise

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122

    Post

    Hi,

    suppose u want to print text in textbox Text1:

    Printer.CurrentX = (Printer.Width - Printer.TextWidth (Text1.Text)) \ 2
    Printer.Print Text1
    Printer.EndDoc

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Greece
    Posts
    11

    Question

    Sorry but i meant how to create the align where the text( a line)covers all the line and all the others lines.Did u understood?
    Charis from GRE
    VB6 Enterprise

  4. #4
    Guest
    Code:
    Richtextbox1.SelAlignment = rtfCenter
    You mean like that?

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