After performing some more investigating, it appears that SOME of the tags continue to work. Not all of them though. See my code below:
- Code: Select all
var labelDP = "<html><div style='width:50%;'>abcdefghijklmnopqrstuvwxyz 0123456789 <br />abcdefghijklmnopqrstuvwxyz 0123456789 abcdefghijklmnopqrstuvwxyz 0123456789 <br />abcdefghijklmnopqrstuvwxyz 0123456789 abcdefghijklmnopqrstuvwxyz 0123456789 abcdefghijklmnopqrstuvwxyz 0123456789 </div></html>"
function onLoad(event)
{
elements.label3.text = labelDP
}
So in my project I have 3 labels. The first one has the contents of the labelDP variable literally copied and pasted into the text property in the designer. The second label uses labelDP as its dataprovider. The third label relies on the onLoad function to change the text property of the label with javascript. Since all 3 labels have the exact same html string, I would think they would all render identically. They do not. On labels 2 and 3, the div tag width is ignored. Also, text does not wrap. Label 1 will render div tag width properly, and will also wrap text even if a div tag is not used.
The whole reason I want this to work is to automatically wrap text.
This is my signature.