Displaying HTML text

Post Author: bcampea
CA Forum: General
I have found out that displaying HTML in Crystal Reports is fairly limited and it will not display tables.  Has anyone found a work-around for this that will display HTML tables?

Use as shown below, it would be helpful
<?xml version="1.0" encoding="utf-8"?>
<!--For more details: http://bharatria.wordpress.com -->
<s:Application name="RichText_textFlow_test"
                                 xmlns:fx="http://ns.adobe.com/mxml/2009"
                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                 xmlns:mx="library://ns.adobe.com/flex/mx">
          <fx:Script>
                    <![CDATA[
                              import flashx.textLayout.conversion.TextConverter;
                    ]]>
          </fx:Script>
          <fx:Declarations>
                    <fx:String id="htmlTextAsHTML"><![CDATA[<b>hI</b> This is <i>test</i>.]]></fx:String>
          </fx:Declarations>
          <s:RichText id="richTxt"
                                        textFlow="{TextConverter.importToFlow(htmlTextAsHTML, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                                        horizontalCenter="0" verticalCenter="0" />
</s:Application>

Similar Messages

  • How to Display Html Text with Image

    HI Frens,
    I am getting some html text from a source, Later i want to
    display that data, but it may happened that it has some images in
    it. Currently I am using text area to display it.
    Now My question is if there is any image will it show, as we
    can see it in our mails? if Not, Which component I should use for
    this?
    I also want that I need to select some file from, How can i
    get open dialog box here?
    Thks in Advance for replies frens:
    Ashish Mishra

    Hi Ashish,
    If I have understood your requirement properly, u want to
    display html text on a flex application.
    I think there its better if you use the html component to
    display the text. I have a sample code which will give you a
    direction to think on.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="initApp( )">
    <mx:Script>
    <![CDATA[
    public function initApp( ):void
    var initHtml:String = "<html><head> \
    <title='Page Example'/> \
    <body bgcolor='#ccddee'><h1>Page
    Example</h1> \
    <p>This is a complete <b>HTML</b> \
    page as a
    <em>string</em>.</p></html></body>";
    this.html.htmlText = initHtml;
    ]]>
    </mx:Script>
    <mx:HTML id="html" width="100%" height="100%" />
    </mx:Application>
    Also do you want a file open dialog box??

  • Help -- How to display Html text in a JEditorPane

    I'm trying to display html in a JEditorPane (html is obtained by transforming Xml and Xsl). So after i do the transformation i have a string which is the html source to be displayed. But when i use editorpane.setText(htmlString) method it is displaying the html source in the editorpane. I also tried using the HTMLEditorKit's read method. Even then its displaying the html source. But when i store the html source as a html file and give the editorpane, the url of the html file, it displays properly.
         I would be so grateful if u can help in displaying the html (which i have as a string) instead of the source...
    Thank you so much...

    Hi, after struggling with problem, the solution seems to be to ditch the content type meta tag, JEditorPane seems to barf (silently!) on this...
    So, to turn this off...
    transformer.setOutputProperty(OutputKeys.ENCODING,"");
    Cheers
    Greg

  • How can i display HTML text in a TextArea

    Hello All,
    We are developing a chat application using Java Swing and RMI with MySQL as backend.
    We have two options.The users can chat thro both browser and application(Swing GUI).
    Now when a user who chats thro a browser sends a message,the chat contents are stored in HTML format in the database (like <BR><font>R u There?</Font></BR>).When the other user happens to chat thro the application,the chat contents send by the other user has to appear in the HTML format in the TextArea of the application.So obviously the textarea shud understand the HTML and display it accordingly.
    How can i do this?Kindly give me an example with some code samples if i have to use EditorPane etc 'coz i haven't got any experience using EditorPanes.
    Thanks in advance
    Regards
    Vijayakannan

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
        public Test() {
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         JEditorPane jep = new JEditorPane("text/html",
                  "Joe: <font color=red>R u <b>There</b>?</Font><BR>"+
                  "Mary: <font color=green>Keep ur shorts on...</Font>");
         content.add(new JScrollPane(jep), BorderLayout.CENTER);
         setSize(200,200);
         show();
        public static void main(String[] args) { new Test(); }
    }

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • Display HTML in Java Applet

    Is it possible to display HTML text in some control in Applet. I do not want to use the swing class for that. please guide me. I am currently using the TextArea to display text which displays text only in a single color. But I want to display text in multicolor. How to do it. If possible please show me with an example.

    You will have to write your own component. Look at java.awt.FontMetrics to get the size of a string. Use
    g.setColor(Color.blue);
    Graphics.drawString(myString,x,y);
    to draw a blue string.

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • Firefox will not display my HTML file as its contents - only displays the HTML text (firefox 5.0).

    I can download a file as a Firefox file (zipped) and it displays successfully. Then I can save the file as a text file and see the HTML text.
    When I work on the HTML text file and then try to display the modified file in Firefox 5.0 and Windows XP, Firefox will only show the HTML text, not the display of the contents of the file.

    Make sure that the file has a .html file extension if you want Firefox to render the content.
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Displaying rendered HTML text in spry detail region

    Hi,
    I have just started to play around with DW CS3 & spry and
    love them!
    I have a Master/Detail spry going from my database, but am
    having a problem displaying the detail the way I need it. The mySQL
    field is a BLOB for some HTML formatted text (I get the text
    elsewhere using a Xinha textarea edit widget and load the the
    formatted HTML text into my db). For example, my string is
    "<h2>this test</h2><strong>xyz</strong>"
    which is loaded into my db. I am using the dreamweaver ADDT export
    XML functionality to generate my spry master/detail region.
    My detail region is displaying the correct html associated
    with the selected master table entry, but it's with the HTML tags,
    not rendered as HTML (I don't want to see
    <h2>title</h2>; I'd like to see title with <H2>
    formatting).
    It's much like what I think a RSS feed would be, but can't
    find a way just to get the html to render because I don't have the
    files externally to source an iframe or anything. (I tried a XLS
    fragment transformation, just putting the detail record field that
    I want in an XLS file, but that didn't do anything).
    Any kind of guidance, hint, point and laugh but then tell me,
    would be greatly appreciated. I also posted at first at ADDT and
    then General Dreamweaver because I didn't locate this forum in the
    Forum topic list, so when I did find this I thought this is
    obviously where I should have first posted - sorry if anyone has
    also been surfing around. Thanks so much so any info.

    Hi Don,
    Thanks so much for responding. I actually did do that, but it
    seems like I might be doing it in the wrong place. I tried it in
    the .js that I have in my header:
    var dsList = new Spry.Data.XMLDataSet("./export.php",
    "theSpecials/special",{sortOnLoad:"rating",sortOrderOnLoad:"ascending",distinctOnLoad:tru e});
    dsList.setColumnType("detail", "html");
    which didn't do it. I also tried it right in my detail
    display area:
    <div style="overflow:hidden; width: 400px;"
    spry:detailregion="dsList">
    <div> <!-- nested div for spry effect -->
    <div id="detailDisplay" style="width:380px; "> <!--
    spry:content="{detail}"> -->
    <script
    type="text/javascript">dsList.setColumnType("detail","html");</script>{dsList::detail}
    <!-- echo '{dsList::detail}' ; ?> -->
    </div> <!-- detailDisplay -->
    </div> <!-- outter div for spry effect -->
    <!-- spry detail region -->
    </div>
    Excuse the inline ugliness, will clean it up when it's
    functional. But that doesn't seem to do it either. I am storing
    that particular field as a blob in the mysql database, but I
    already tried making that a VARCHAR which had no effect either.
    Thanks so much for for the suggestion! Any other gems that I
    can try?
    Liz

  • Displaying HTML formatted text in JavaFX problem

    Hello,
    I need to display formatted HTML text in JavaFX (1.3.1).
    The text for example is: "&lt;html&gt;abc&lt;b&gt;d&lt;/b&gt;efg&lt;/html&gt;"I found the way to display it by wrapping Swing JLabel component or using SwingLabel component.
    When I launch the application from NetBeans it works fine.
    When I launch the application from browser (IE, FF, Chrome) it works ok ONLY the first time I enter the page.
    When I enter the page next time I do not see any text.
    I can solve it by clearing browser cache OR clearing Java cache (removing just my jar and jnlp files from cache do not helps).
    Any suggestions?
    Thank you

    Thank you,
    1. I do not have directory you specified, I have C:\Users\[USER_NAME]\Sun\JavaFX\fonts folder instead (Win 7, 32 bit)
    2. In this directory I have only one file: Amble-Condensed.ttf
    3. Unfortunately, I can not delete the file (or folder) from the function you suggested, because the file is in use by Java (I can not delete it even from Windows Explorer)
    Another thing I found: the text is displayed properly after I close the browser or go to another page that do not have applets...
    Any other solutions?
    Edited by: dpd on Dec 14, 2010 4:59 AM

  • Custom field html displays as text

    I am converting a custom field from a SharePoint 2007 version to SharePoint 2013. The field works correctly in SP2007. In SP2013 it has the correct information but displays as text instead of html. I have set the "disable-output-escaping" in the
    xsl to "yes" but it does not help. Here the xml and xsl data for the field.
    <?xml version="1.0" encoding="utf-8" ?>
    <FieldTypes>
      <FieldType>
        <Field Name="TypeName">PriorityIndicator2</Field>
        <Field Name="ParentType">Text</Field>
        <Field Name="TypeDisplayName">Priority Indicator</Field>
        <Field Name="TypeShortDescription">Priority Indicator</Field>
        <Field Name="UserCreatable">TRUE</Field>
        <Field Name="Sortable">TRUE</Field>
        <Field Name="AllowBaseTypeRendering">TRUE</Field>
        <Field Name="Filterable">TRUE</Field>
        <Field Name="FieldTypeClass">Company.WebParts.PriorityIndicator2, $SharePoint.Project.AssemblyFullName$</Field>
        <Field Name="FieldEditorUserControl">/_controltemplates/15/PriorityIndicator2FieldEditor.ascx</Field>
        <Field Name="CAMLRendering">TRUE</Field> 
        <RenderPattern Name="DisplayPattern">
     <Column HTMLEncode="FALSE" />
        </RenderPattern>   
      </FieldType>
    </FieldTypes>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
                    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
                    version="1.0"
                    exclude-result-prefixes="xsl msxsl ddwrt"
                    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
                    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
                    xmlns:ddwrt2="urn:frontpage:internal">
      <xsl:template match="FieldRef[@Name = 'PriorityIndicator2]" mode="Text_body">
        <xsl:param name="thisNode" select="." />
        <span style="background-color:lightgreen;font-weight:bold">
          <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes" />
        </span>
      </xsl:template >
    </xsl:stylesheet>
    Any help would be greatly appreciated.
    Luis R. Lebron

    Hi,
    According to your post, my understanding is that the custom field not render html well.
    As you have known, we can use the “disable-output-escaping” to render the html, however, it not works in your environment.
    As a workaround, we can use JQuery to render the html, I have made a simple code snippets to achieve this scenario, you can refer to it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    var theTDs = $("td[id='SPFieldCustom']");
    //console.log(theTDs.html());
    TDContent = theTDs.text();
    //console.log(TDContent);
    theTDs.html(TDContent);
    </script>
    Note: You should change the id to fit your environment.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Javafx 1.3 with swinglabel displaying html formated texts

    Dear FX experts,
    I am using swinglabel to display html formated text, and it worked fine with the fx 1.2. However, as I moved to 1.3, the showing of the text is not so proper, because I want the content of the swinglabel be shown in the middle of the box(the label itself) I set. However, in 1.2 it's ok, but 1.3 gives me headache: it's not shown on the place it should be, like it's ignoring all the centering attribute I tried to declare...
    any ideas? or suggestions? or solution?
    (ps, it keeps saying a warning if I used the class under ext package, since swingLabel is under ext... maybe it means I can use another class to do this? but I can't find any...)
    my codes would be like the followings:
    public def contentLabel: SwingLabel = SwingLabel {
    text: "<html\><font size=6>test test</font></html>"
    width: 400
    height: 500
    horizontalAlignment: SwingHorizontalAlignment.CENTER
    public function run(){
    Stage {
        title:"test"
        scene: Scene {
             width: 800
             height: 600
             content: [contentLabel]
    }Edited by: 880613 on 20.08.2011 16:41
    Edited by: 880613 on 21.08.2011 05:13

    No one knows about this?
    the SwingLabel or all Class files under ext packages are simply going to be replaced but without substitutors???

  • Certain Pages display as text rather than HTML. Yahoo and Google for example

    Certain pages are displaying as text rather than HTML. Bing displays correctly but Yahoo, and google do not. Tried a lot of settngs but to no avail. Any suggestions?

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences''' in the address bar and press enter.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences''' in the address bar and press enter
    Select '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • How to display HTML chars in report

    I have a field in database with following data.
    &lt;p&gt;This is data&lt;/p&gt;
    I have added a textbox in report in which I am displaying this column and it is displayed as it is. But I want to show it as HTML. So for that I created a function that decodes special chars and convert them into HTML.
    But after applying HTML decoding, now it is showing as:
    <p>This is data</p>
    As you can see now it is directly showing "<p>" tag instead of actually applying it. How do I fix this issue?

    That's strange, it should indeed not display the <p> tags.  Do any other supported tags work?  Try replacing p with b and check if the text is rendered in bold...
    List of supported tags: Importing HTML into a Report (Report Builder and SSRS)
    If that didn't help, have a look at the Properties pane with the placeholder selected.  The Properties
    dropdown will display "Selected Text", this way you can tell if you've got the placeholder selected (and not the whole textbox).  Now locate the MarkupType property.  It should be set to HTML.
    SQL Server MVP, MCITP/MCTS SQL Server 2008 <br/> Check out my articles at <a href="http://blog.hoegaerden.be">BI: Beer Intelligence?</a>

  • Open hyperlinks in html text using StageWebView instead of external browser

    My iPad app downloads xml data from a server and displays it as html text. The text may contain hyperlinks and currently these are correctly displayed as links in my app. However when I click on the link, it opens the link in an external browser.
    Any idea how I could instead open the links using StageWebView - I know how to open a link using StageWebView - the problem is intercepting whatever causes it to open in the external browser and instead use StageWebView.
    Thanks in advance

    Hi, John, welcome to Apple's user-to-user discussion forums.
    Does anyone here know of a way to open new windows without using command click in a tab?
    If you want links on a web page to open in a new tab, you need to command-click on them. This will work both for links set up to open in the same window and those set up to open in a new window. There is no setting in Preferences to make links on a web page automatically open in a new tab.
    There is a preference setting to open links from other programs, such as Mail, in a new tab. In Safari's Preferences, click on the General icon. Towards the bottom where it says "Open links from applications", check "in a new tab in the current window".

Maybe you are looking for

  • What size partition do I need to install windows 8.1 & Bootcamp Question

    Hello, I installed windows 8.1 on my MBA 128gb, I5, 8gb ram using bootcamp but I messed up and did not make the partition big enough. After the install of windows I only have 7.6gb left out of 30gb that I partitioned the drive to. So how big of a par

  • Depreciation forecast report

    Hello All, I need a depreciation forecast report that gives me the depreciation by month. It needs to subtotal by cost center and asset class. Eg if cost center X has deprecaition of 5000 which is comprised of asset class A of $1000 Asset classs B of

  • Numbers template

    does anyone have a simple "numbers"  template for rental properties?

  • Oracle 10g Installer Hangs at 87%

    I am trying to install Oracle 10g on a HPUX Itanium box and the installer hangs every time at 87%, which is right after specifying schema passwords. I can see the java process still running but it is only taking 0.23% of a processor. Task Being Perfo

  • Unable to update adobe flash using my mac mini

    After many attempts to install Adobe Flash on my Mac Mini even though the prompts read the software is installed,  I am unable to access an application.  I have installed, uninstalled and shut down numerous times and have still been unsuccessful.  Pl