HTML Textbox "Invalid unit type."

2 posts, 0 answers
  1. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 14 May 2009 Link to this post

    Hi there, There is a problem with HTML text box with "Invalid Unit Type"
    the HTML I wish to display are the following

    <DIV><SPAN STYLE="color:black"><SPAN style="background-color:window"><SPAN style="font:normal normal normal 10pt/normal Arial">1</SPAN><SPAN STYLE="background-color:window">.</SPAN><SPAN STYLE="background-color:window">8</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">h</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">f</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window">.</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">C</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">h</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">w</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">k</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">g</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">T</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">w</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">C</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">C</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">m</SPAN><SPAN STYLE="background-color:window">m</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">.</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">L</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">f</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">P</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">.</SPAN></SPAN></SPAN></DIV

    any Idea?

    Also, another question. when I try to have the report rendered as HTML or MHTML(it's working at moment) and send as Email, I wish to have certain image "linked" not embbed (otherwise will create a 10mb email), how would I do that? Any Suggestions will be appreciated.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 15 May 2009 Link to this post

    Hi James,

    Currently we cannot parse the following - style="font:normal normal normal 10pt/normal Arial" and namely the stuff after the pt, as the parser tries to identify the unit and pt/normal is taken as it. We would escape such declarations for the subsequent version of the product, since we do not support line-height yet.
    For the time being please remove the /normal part and it should be properly evaluated.

    Best wishes,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
Back to Top