<?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 ExportBiff saving corrupt xls from QV Plugin, but ok from QV Desktop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ExportBiff-saving-corrupt-xls-from-QV-Plugin-but-ok-from-QV/m-p/1875544#M1216655</link>
    <description>&lt;P&gt;Hi Eveyone,&lt;/P&gt;
&lt;P&gt;For several years, we have had multiple reports that with a button, the user could save a table as an xls.&lt;/P&gt;
&lt;P&gt;This button triggered a macro that is like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;sub ExportToExcel
    'on error resume next		
	XLSFilePath = getVariableValue("v.FilePath")
	XLSFileName = getVariableValue("v.FileName")
	XLSFileExtension = getVariableValue("v.FileExtension")
	
	set QVData = ActiveDocument.GetSheetObject(getVariableValue("v.ChartToExport"))
	
	'Export in XLS
	QVData.ExportBiff(XLSFilePath &amp;amp; XLSFileName &amp;amp; XLSFileExtension)
	
	Set QVData = nothing
end sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This macro worked fine on QV 12.50, but now on QV 12.60 (May 2021 SR1) it is not working when run from the IE Plugin.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;When this macro is ran from a QV Desktop, the xls file generated openes fine with Excel.&lt;BR /&gt;But when the same macro is run from the QV Plugin, the generated file seems to be corrupted and Excel is unable to open it, it return this error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Excel error after ExportBiff" style="width: 935px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69290i1598BB11EBB1FDA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image 1.png" alt="Image 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does not matter if you click Yes or No, Excel is not able to recover anything and it always shows an empty excel.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;It is worth clarifying that the XLS file size is the same when generated from the QV Desktop or the QV Plugin.&lt;/P&gt;
&lt;P&gt;I tried searching for any issues with ExportBiff on the new 12.60 version (May 2021 SR1) , but found absolutely nothing. This was working fine on 12.50 and back&lt;/P&gt;
&lt;P&gt;Has anyone come across this issue? any ideas on what could be going on?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Dec 2021 13:25:27 GMT</pubDate>
    <dc:creator>novolouy</dc:creator>
    <dc:date>2021-12-28T13:25:27Z</dc:date>
    <item>
      <title>ExportBiff saving corrupt xls from QV Plugin, but ok from QV Desktop</title>
      <link>https://community.qlik.com/t5/QlikView/ExportBiff-saving-corrupt-xls-from-QV-Plugin-but-ok-from-QV/m-p/1875544#M1216655</link>
      <description>&lt;P&gt;Hi Eveyone,&lt;/P&gt;
&lt;P&gt;For several years, we have had multiple reports that with a button, the user could save a table as an xls.&lt;/P&gt;
&lt;P&gt;This button triggered a macro that is like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;sub ExportToExcel
    'on error resume next		
	XLSFilePath = getVariableValue("v.FilePath")
	XLSFileName = getVariableValue("v.FileName")
	XLSFileExtension = getVariableValue("v.FileExtension")
	
	set QVData = ActiveDocument.GetSheetObject(getVariableValue("v.ChartToExport"))
	
	'Export in XLS
	QVData.ExportBiff(XLSFilePath &amp;amp; XLSFileName &amp;amp; XLSFileExtension)
	
	Set QVData = nothing
end sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This macro worked fine on QV 12.50, but now on QV 12.60 (May 2021 SR1) it is not working when run from the IE Plugin.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;When this macro is ran from a QV Desktop, the xls file generated openes fine with Excel.&lt;BR /&gt;But when the same macro is run from the QV Plugin, the generated file seems to be corrupted and Excel is unable to open it, it return this error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Excel error after ExportBiff" style="width: 935px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69290i1598BB11EBB1FDA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image 1.png" alt="Image 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does not matter if you click Yes or No, Excel is not able to recover anything and it always shows an empty excel.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;It is worth clarifying that the XLS file size is the same when generated from the QV Desktop or the QV Plugin.&lt;/P&gt;
&lt;P&gt;I tried searching for any issues with ExportBiff on the new 12.60 version (May 2021 SR1) , but found absolutely nothing. This was working fine on 12.50 and back&lt;/P&gt;
&lt;P&gt;Has anyone come across this issue? any ideas on what could be going on?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 13:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ExportBiff-saving-corrupt-xls-from-QV-Plugin-but-ok-from-QV/m-p/1875544#M1216655</guid>
      <dc:creator>novolouy</dc:creator>
      <dc:date>2021-12-28T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: ExportBiff saving corrupt xls from QV Plugin, but ok from QV Desktop</title>
      <link>https://community.qlik.com/t5/QlikView/ExportBiff-saving-corrupt-xls-from-QV-Plugin-but-ok-from-QV/m-p/1966593#M1220373</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I have the same problem. Is there a solution in the meantime?&lt;/P&gt;
&lt;P&gt;Many greetings&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 14:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ExportBiff-saving-corrupt-xls-from-QV-Plugin-but-ok-from-QV/m-p/1966593#M1220373</guid>
      <dc:creator>qlikview2015</dc:creator>
      <dc:date>2022-08-09T14:14:36Z</dc:date>
    </item>
  </channel>
</rss>

