Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic text control

Status
Not open for further replies.

crab4d

Programmer
Apr 5, 2006
2
ZA
Hi I need to place a literal string in my report. One or two words need to be bold and a few italic. One reviewing the help I believe the dynamic text control caters for this but there is no real help regarding this. I see that you can use plain text format or rtf or html text format but I can't find any further details or any examples on the syntax using the relevant tabs.
Please point me in the right direction.
 
Set the ValueExp property of the DTC to the field that contains you literal sting.
Or hard code it. For example:

"<b>hello---bold</b><i>And this is Italic</i>"




 
Or you could add some code to the OnRow() method of the DTC.
Like this....



Sub OnRow( row As AcDataRow )
Super::OnRow( row )
' Insert your code here

Dim s As String

s = "<b>BOLD WORDS</b>"
s = s + "<i>Italic Words</i>"
TaggedText = s


End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top