Results 1 to 6 of 6

Thread: [RESOLVED] RichTextBox aligning text

  1. #1

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Resolved [RESOLVED] RichTextBox aligning text

    I have a Richtextbox where users can create their own Documents(Proposals,Invoices etc) with their logo and wording. They can insert placement markers into their documents to automate the filling of these documents that look like this: #date,#name,#address,#citystatezip,#jobaddress,#planlotnumber,#price
    When creating their documents the document is scanned for these tags, when found they are replaced with values from textboxs. I cannot get the replacement text that is on same line to align properly. I have tried tabstops and other methods to no avail
    I have had this problem
    The text on the right side of the rtf will get pushed too far to the right depending on the length of the string on the left side. See attachment...
    How can i correct this ?
    Attached Images Attached Images  
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  2. #2
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: RichTextBox aligning text

    Tab sets should work. What is the code you are using now that resulted in the attached image?

  3. #3

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: RichTextBox aligning text

    Quote Originally Posted by Tom Moran
    Tab sets should work. What is the code you are using now that resulted in the attached image?
    I found some code here that may work: I'm testing
    http://www.vb-helper.com/howto_richt...drag_tabs.html
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: RichTextBox aligning text

    try a table
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: RichTextBox aligning text

    Quote Originally Posted by westconn1
    try a table
    Unfortunately a table does not work. My rtf's also have the feature of adding a table, but there is no way to restrict entry to cells. the entry will goes right past the borders of the table or spill into the next cell.
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  6. #6
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: [RESOLVED] RichTextBox aligning text

    Also there is a bug in the Rich Text Box DLL with tables. It does not wrap multiline cells properly.

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