<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Showing RTF-content in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203023#M60511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what you want to do to laod image:&lt;/P&gt;&lt;P&gt;1. Define Image Key and Image path in the data source (inline/excel/rdbms...)&lt;/P&gt;&lt;P&gt;2. INFO LOAD to QV table&lt;/P&gt;&lt;P&gt;3. Add the image reference in a text box with display type 'Image'.&lt;/P&gt;&lt;P&gt;A pseudo code:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Photos:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;INFO LOAD&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;xxx as &lt;B&gt;Image_Key&lt;/B&gt;,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;yyy as Image // image path&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;FROM qqq.qvd (qvd);&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;-----Layout-----&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;In the text Box (Presentation - Image):&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;In Place of Text:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;='qmem://Image_Key/'&amp;amp;&lt;B&gt;Image_Key&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;P&gt;-Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 18:22:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-30T18:22:40Z</dc:date>
    <item>
      <title>Showing RTF-content in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203022#M60510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some information stored as RTF/blob/image (I do not have the exact word for it) and have come this far in extracting the information in a visible format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT(Varchar(8000),CONVERT(BINARY(8000),Notebook))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the following result for example:&lt;/P&gt;&lt;P&gt;{\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}}&lt;BR /&gt;{\colortbl\red0\green0\blue0;}&lt;BR /&gt;\deflang1053\pard\plain\f2\fs20 Talked about or products. Intererested client.&lt;BR /&gt;\par }&lt;/P&gt;&lt;P&gt;Is there a way to get it more visible? Or cleaned out of formatting.&lt;/P&gt;&lt;P&gt;I have tried the "Blob viewer" and Info-field instead, but no proper result there...&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Niklas Hedborg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 18:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203022#M60510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-30T18:01:31Z</dc:date>
    </item>
    <item>
      <title>Showing RTF-content in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203023#M60511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what you want to do to laod image:&lt;/P&gt;&lt;P&gt;1. Define Image Key and Image path in the data source (inline/excel/rdbms...)&lt;/P&gt;&lt;P&gt;2. INFO LOAD to QV table&lt;/P&gt;&lt;P&gt;3. Add the image reference in a text box with display type 'Image'.&lt;/P&gt;&lt;P&gt;A pseudo code:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Photos:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;INFO LOAD&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;xxx as &lt;B&gt;Image_Key&lt;/B&gt;,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;yyy as Image // image path&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;FROM qqq.qvd (qvd);&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;-----Layout-----&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;In the text Box (Presentation - Image):&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;In Place of Text:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;='qmem://Image_Key/'&amp;amp;&lt;B&gt;Image_Key&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;P&gt;-Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 18:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203023#M60511</guid>
      <dc:creator />
      <dc:date>2009-09-30T18:22:40Z</dc:date>
    </item>
    <item>
      <title>Showing RTF-content in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203024#M60512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arun,&lt;/P&gt;&lt;P&gt;Thank you for your advice and it works really well for an image-image.&lt;/P&gt;&lt;P&gt;My problem is that the field type (called Notebook) in the database is indeed "image" but the content is binary RTF (rich text format).&lt;/P&gt;&lt;P&gt;(I am probably using words that I do not really understand &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;)&lt;/P&gt;&lt;P&gt;So the only thing that pops out of the info-field is "links" similar to this one:&lt;/P&gt;&lt;P&gt;qmem://&amp;lt;6&amp;gt;/&amp;lt;145&amp;gt;&lt;/P&gt;&lt;P&gt;No images, no RTF-documents, no texts...&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; CONVERT(Varchar(8000),CONVERT(BINARY(8000),Notebook)) AS ShowMeWhatsStoredInThisField&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I can att least get some text information that I can put and paste into Notepad and saves as .rtf and voila I can open a nice formatted document, but unfortunately that is not really what I want...&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 19:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203024#M60512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-30T19:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Showing RTF-content in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203025#M60513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arunpaduva, I'm trying to do the same but with no result. What I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my post :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/679796#679796" title="http://community.qlik.com/message/679796#679796"&gt;http://community.qlik.com/message/679796#679796&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 19:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203025#M60513</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2014-12-14T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Showing RTF-content in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203026#M60514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am beginner with QlikView and I had to face a challenge of extracting the plain text by parsing&amp;nbsp; RTF/RichText. Seems to be an easy problem and the solution is even easier ,but it took me some time to arrive at the solution, hence i would like to share it with the community.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I created a custom function in QlikView&amp;nbsp; by writing a JScript&amp;nbsp; in the Edit Module (CTRL +M) space. The function is as shown below &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; function convertToPlain(rtf) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;{&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtf = rtf.replace(/\\par&lt;D&gt;?/g, "");&lt;/D&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return rtf.replace(/&lt;STRONG&gt;\{\\[^{}]+;\}|[{}]|\\\n?[A-Za-z]+\n?(?:-?\d+)?[ ]?|[{\\\*}]/g&lt;/STRONG&gt;, "");&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; }&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;All this function does is replaces the string which matches the regex expression marked in bold with a empty string&amp;nbsp; "" . I am sure that some of you can write a better Regex Expression, but this was the one which worked for me(there are lot of posts where you find different regex expression which might work for you but you need to do thorough testing). You can use websites such as &lt;A href="https://regex101.com/" title="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;‌ to build your own Regex Exp and test it. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now all&amp;nbsp; you have to do is to call this function in your load script as shown below&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;convertToPlain&lt;/SPAN&gt;(&amp;lt;YourRTFColumn&amp;gt;) from &amp;lt;YourSource&amp;gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please feel free to contribute if you think there is a better way to do it or someone wants to add on to this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 19:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-RTF-content-in-QlikView/m-p/203026#M60514</guid>
      <dc:creator />
      <dc:date>2017-05-05T19:00:42Z</dc:date>
    </item>
  </channel>
</rss>

