<?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: Auto &amp;quot;Fit Columns to Data&amp;quot; or with a extra button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543702#M555832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems there is none method for doing this directly. But you could set the column width static with a fix value or by reference to any value - see for such examples APIGuide.qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim w(3)&lt;/P&gt;&lt;P&gt;w(1)=100&lt;/P&gt;&lt;P&gt;w(2)=150&lt;/P&gt;&lt;P&gt;w(3)=200&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.Sheets("Main").CreateStraightTable&lt;/P&gt;&lt;P&gt;chart.AddDimension "ProductType"&lt;/P&gt;&lt;P&gt;chart.AddExpression "sum(Amount)"&lt;/P&gt;&lt;P&gt;chart.AddExpression "count(Product)"&lt;/P&gt;&lt;P&gt;chart.SetPixWidths 0,w&lt;/P&gt;&lt;P&gt;chart.EqualPixWidths 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brute force is to read every cell-value for each column and count the char to receive the max-value and set herewith the column width (not really recommended but possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jul 2013 12:10:16 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2013-07-31T12:10:16Z</dc:date>
    <item>
      <title>Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543699#M555829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a possibility in Qlikview to "Fit Columns to Data" from a straight table. But this need to be done by a rightclick or trough the menu. Now i want to make my qlikview document a lot more userfriendly. And this is liek this not/les the case. Because my table has always different results and different width's for the cell's text this "Fit Columns to Data" need to be pressed a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44788" class="jive-image jiveImage" alt="snap.jpg" src="https://community.qlik.com/legacyfs/online/44788_snap.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that this is automated? Trough a function from qlikview itself or a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this aint possible... can this be done by adding a button to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iv'e read a lot topics about this, but they all dont do the ting asked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 09:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543699#M555829</guid>
      <dc:creator />
      <dc:date>2013-07-31T09:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543700#M555830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use the functionality available under layout Tab "Size to Data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 09:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543700#M555830</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-07-31T09:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543701#M555831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not seem to work, at least not when it has been resized once. even when i uncheck it, save, check it and save again. mayby it need to be changed to "Always Size to Data"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 09:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543701#M555831</guid>
      <dc:creator />
      <dc:date>2013-07-31T09:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543702#M555832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems there is none method for doing this directly. But you could set the column width static with a fix value or by reference to any value - see for such examples APIGuide.qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim w(3)&lt;/P&gt;&lt;P&gt;w(1)=100&lt;/P&gt;&lt;P&gt;w(2)=150&lt;/P&gt;&lt;P&gt;w(3)=200&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.Sheets("Main").CreateStraightTable&lt;/P&gt;&lt;P&gt;chart.AddDimension "ProductType"&lt;/P&gt;&lt;P&gt;chart.AddExpression "sum(Amount)"&lt;/P&gt;&lt;P&gt;chart.AddExpression "count(Product)"&lt;/P&gt;&lt;P&gt;chart.SetPixWidths 0,w&lt;/P&gt;&lt;P&gt;chart.EqualPixWidths 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brute force is to read every cell-value for each column and count the char to receive the max-value and set herewith the column width (not really recommended but possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 12:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543702#M555832</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-07-31T12:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543703#M555833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table, the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800000190734863px; color: #737373; font-family: Arial;"&gt;chart.SetPixWidths 0,w&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800000190734863px; color: #737373; font-family: Arial;"&gt;chart.EqualPixWidths 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800000190734863px; color: #737373; font-family: Arial;"&gt;doesn't work&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800000190734863px; color: #737373; font-family: Arial;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 11:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543703#M555833</guid>
      <dc:creator />
      <dc:date>2013-08-08T11:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543704#M555834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SetPixWidths is for straight tables and SetPixWidth without "s" for pivot tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 11:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543704#M555834</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-08T11:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543705#M555835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! It's ok!&lt;/P&gt;&lt;P&gt;Thank you very much Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 12:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/543705#M555835</guid>
      <dc:creator />
      <dc:date>2013-08-08T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Auto "Fit Columns to Data" or with a extra button</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/1662925#M555836</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;I have a slightly different problem.. I am storing a QVD into an excel file and the width of one column is not a&lt;SPAN&gt;djusting to its longest data string. This is causing incorrect output in the excel file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way around this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 13:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-quot-Fit-Columns-to-Data-quot-or-with-a-extra-button/m-p/1662925#M555836</guid>
      <dc:creator>AkbarShaikh</dc:creator>
      <dc:date>2020-01-06T13:33:40Z</dc:date>
    </item>
  </channel>
</rss>

