HTML Tags in Markup |
Post Reply |
Author | |
KonradJ
Newbie Joined: 21 October 2010 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 22 June 2013 at 10:08pm |
Is there possible to display HTML tags in the markuptext?
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Markup is based on XAML, a different markup language than HTML. There are often matching XAML tags for HTML tags though. For example, HTML <b> is <Bold> in XAML, HTML <table> is <Grid> in XAML, etc...
Can you be more specific about what you need? |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
KonradJ
Newbie Joined: 21 October 2010 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thank you for your reply.
What I want is to display colored html tags in the reportviewer using the markup language. |
|
KonradJ
Newbie Joined: 21 October 2010 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Not possible?
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Unfortunately, I'm still not 100% sure what you want to do.
Do you want to translate HTML to XAML and show that in a ReportControl cell? Do you just want to use XAML markup in a ReportControl cell? If so, make sure to set the EnableMarkup property to TRUE, then use valid XAML strings for you ReportRecordItem.Caption property. Do you want to detect HTML tags in a string and apply a color to them? If so, I'll leave the detection part to you, but make sure to escape the HTML strings first using the following code: http://forum.codejock.com/forum_posts.asp?TID=10865 Then put your HTMl string in a XAML <TextBlock></TextBlock> tag around, add <Run> tags around where you've detected the HTML tags, and set the Foreground attribute to the color that you want. Example: <TextBlock><Run Foreground='Red'><p></Run>This is a paragraph with the HTML tag colorized.<Run Foreground='Red'></p></Run></TextBlock> Or do you mean something else entirely? Can you provide any more information/examples of exactly what you want to achieve? |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
KonradJ
Newbie Joined: 21 October 2010 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hello.
After checking the forumpost you linked to, that solved my issue. Thanks for your help
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |