<?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 Re: Exporting a text object to HTML file using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exporting-a-text-object-to-HTML-file-using-macro/m-p/695572#M667283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ServerSideExportEx method does not appear to be available for the text object.&lt;/P&gt;&lt;P&gt;I check the api files from the following post (&lt;A href="https://community.qlik.com/message/36551"&gt;API in readable format&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a script that will use vbscript to save the text to a file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exportHTML&lt;/P&gt;&lt;P&gt;set cs = ActiveDocument.GetSheetObject("TX01")&lt;/P&gt;&lt;P&gt;msgbox cs.GetText()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objFSO=CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' How to write file&lt;/P&gt;&lt;P&gt;outFile="c:\test.html"&lt;/P&gt;&lt;P&gt;Set objFile = objFSO.CreateTextFile(outFile,True)&lt;/P&gt;&lt;P&gt;objFile.Write cs.GetText() &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;objFile.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;www.techstuffy.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Oct 2014 13:29:36 GMT</pubDate>
    <dc:creator>markodonovan</dc:creator>
    <dc:date>2014-10-26T13:29:36Z</dc:date>
    <item>
      <title>Exporting a text object to HTML file using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-a-text-object-to-HTML-file-using-macro/m-p/695571#M667282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the following macro that works great when the object in qlikview is a table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub exportHTML&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set cs = ActiveDocument.GetSheetObject("CH524")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cs.ServerSideExportEx "C:\test.html" , ";" , 0 '0=HTML, 1=Text, 2=Bitmap, 3=XML, 4=QVD, 5=BIFF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to do the exact same function and the object is a &lt;SPAN style="; color: #575757; text-decoration: underline;"&gt;&lt;STRONG&gt;text object&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I receive an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to export a text object to html file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 11:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-a-text-object-to-HTML-file-using-macro/m-p/695571#M667282</guid>
      <dc:creator />
      <dc:date>2014-10-26T11:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a text object to HTML file using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-a-text-object-to-HTML-file-using-macro/m-p/695572#M667283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ServerSideExportEx method does not appear to be available for the text object.&lt;/P&gt;&lt;P&gt;I check the api files from the following post (&lt;A href="https://community.qlik.com/message/36551"&gt;API in readable format&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a script that will use vbscript to save the text to a file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exportHTML&lt;/P&gt;&lt;P&gt;set cs = ActiveDocument.GetSheetObject("TX01")&lt;/P&gt;&lt;P&gt;msgbox cs.GetText()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objFSO=CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' How to write file&lt;/P&gt;&lt;P&gt;outFile="c:\test.html"&lt;/P&gt;&lt;P&gt;Set objFile = objFSO.CreateTextFile(outFile,True)&lt;/P&gt;&lt;P&gt;objFile.Write cs.GetText() &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;objFile.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;www.techstuffy.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 13:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-a-text-object-to-HTML-file-using-macro/m-p/695572#M667283</guid>
      <dc:creator>markodonovan</dc:creator>
      <dc:date>2014-10-26T13:29:36Z</dc:date>
    </item>
  </channel>
</rss>

