1 Attachment(s)
[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 ?
Re: RichTextBox aligning text
Tab sets should work. What is the code you are using now that resulted in the attached image?
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
Re: RichTextBox aligning text
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.
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.