<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Excel rows does not show overs 65536]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6793&amp;type=atom" />
	<updated>2017-06-10T05:14:18Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6793</id>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27971#p27971" />
			<content type="html"><![CDATA[<p>@joe: Thanks for the <a href="https://github.com/FrontAccountingERP/FA/commit/366a3ecbcd7841413f980f9e1d65895b77af1b82">commit</a> in the 2.4.x branch. Those who want it for the v2.3.x branch can <a href="https://frontaccounting.com/punbb/misc.php?action=pun_attachment&amp;item=574&amp;download=1">take it</a> from the 9th post in this thread.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-06-10T05:14:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27971#p27971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27961#p27961" />
			<content type="html"><![CDATA[<p>I think I will commit these files now. I have tested them without any problems.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-06-08T05:59:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27961#p27961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27950#p27950" />
			<content type="html"><![CDATA[<p>@nashirbadu</p><p>Did you get the time to test these 2 files. It would be nice to commit them asap. </p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-06-05T15:15:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27950#p27950</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27923#p27923" />
			<content type="html"><![CDATA[<p>My Post #9 here has the FA 2.3.x version attached.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-29T09:52:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27923#p27923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27922#p27922" />
			<content type="html"><![CDATA[<p>@Joe <br />Thanks for you replay. I will test with your two&nbsp; new attache file. I</p><p>Thanks,<br />Nasir</p>]]></content>
			<author>
				<name><![CDATA[nashirbabu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41324</uri>
			</author>
			<updated>2017-05-29T05:56:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27922#p27922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27921#p27921" />
			<content type="html"><![CDATA[<p>The implemented algorithm is the fastest way of doing it. In C/C++ these check are internally converted to assembly instructions of one line.</p><p>Still, I am waiting for test result before committing it to 2.4. And as told, it is possible to use the files in 2.3.X also as the code are the same in both releases and files. Only you will have to replace the files yourself.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-28T22:09:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27921#p27921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27919#p27919" />
			<content type="html"><![CDATA[<p>Many large users are still on FA 2.3.x and they would have the data to test this specific change for both the max lines and the time to generate the report and to see if there is any way to optimise the New Line check routine. An array of arrays that holds the segmented sets of records based on the max rows may be implemented to avoid checking on each new line that wastes time.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-28T15:48:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27919#p27919</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27914#p27914" />
			<content type="html"><![CDATA[<p>@apmuthu</p><p>No, the dates are correctly displayed in the excel report, and that is the main issue <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>And yes, it is possible to backport the files to 2.3.x, however we are no longer maintaining this version, so you have to do it yourself.</p><p>But just wait a while to hear if the files are ok for shipping!</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-28T07:18:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27914#p27914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27905#p27905" />
			<content type="html"><![CDATA[<p>Is there something wrong with the <strong>function ymd2Date($year, $mon, $day)</strong> in <strong>excel_report.inc</strong>?</p><p>Try to <strong>echo ymd2Date(1985, 2, 24);</strong> and we get <strong>31102</strong>.<br />Now check it out at <a href="http://m.wolframalpha.com/input/?i=31102+days+since+1900-01-01&amp;x=0&amp;y=0">Wolfram Alpha</a> and we get <strong>26th Feb 1985</strong>.</p><p>Excellent work @joe porting the <a href="https://github.com/pear/OLE/blob/master/OLE/PPS/Root.php">PEAR/Perl code</a>.<br />Further <a href="http://www.bettina-attack.de/jonny/view.php/projects/php_ole/">notes</a>.</p><p>The files in @joe&#039;s post are for the FA 2.4.1 version and can be ported to v2.3.x as well.<br />Those who wish to test on FA 2.3.x can do so with the files in the attachment here.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-28T04:01:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27905#p27905</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27902#p27902" />
			<content type="html"><![CDATA[<p>@nashirbadu</p><p>I have included 2 files for testing of large files with more than 65535 rows. These files are only for testing, so DO NOT use them in production yet.</p><p>Will you download the files, rename Workbook.php1 to Workbook.php and replace the files in /reporting/includes folder.<br />Backup your original files during testing.</p><p>These files work with both small and large files with over 65530 rows. I have tested with 100000 rows without problem.<br />It will take some time with 100000 rows, about 2-3 minutes or more.<br />It works the way that when reaching the max row files, 65530, a new sheet is established and the rows roll over to this new sheet and so forth. </p><p>Please tell me if the files are ok.</p><p>In the file, excel_report.inc up at the top there is a define(&#039;MAX_ROW_SHEET&#039;, 65530); <br />You can, for testing, use a lower value, say 25,&nbsp; and see the changing to a new sheet.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-27T14:24:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27902#p27902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27882#p27882" />
			<content type="html"><![CDATA[<p>Since the existing Workbook.php is small and provides for small sized old formal xls&nbsp; files, let us implement the xlsx type format using any later excel library only for those reports that are over say 60K lines. Worksheets in the current instance need not be provided for each page. A new worksheet for every 60K lines may be the way forward without changing the library. This way both branches can benefit.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-23T16:23:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27882#p27882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27874#p27874" />
			<content type="html"><![CDATA[<p>I found a PHP_XLSXWriter class here</p><p>https://github.com/mk-j/PHP_XLSXWriter</p><p>I will check if this class can be used. It handles 1048576 rows. </p><p>If it is ok, I will implement it during the 2.4 series. Maybe already the 2.4.2 release.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-21T21:53:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27874#p27874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27873#p27873" />
			<content type="html"><![CDATA[<p>There is a catch 22 effect in counting the lines. The report Title is printed before the eventual counting of the printed lines could be done.</p><p>I guess it is quite rare to have that many rows in a report&nbsp; If we have, say 60 rows per page, it will result in over 800 pages!</p><p>I guess it is better to just wiki this as I said before and let some skilled programmer fix this during the 2.4 series.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-21T21:28:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27873#p27873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27872#p27872" />
			<content type="html"><![CDATA[<p>For now let is put a check for &gt; 65535 lines and a appendage to the file name that it is truncated.<br />We use the <strong>reporting/includes/Workbook.php</strong>&#039;s BIFF Writer format that is probably the oldest and most compatible across spreadsheet applications.<br /></p><div class="codebox"><pre><code>$maxsize = 7087104;</code></pre></div><p>The above limits filesize in Workbook.php.</p><p>Is there a way to flow the balance to new worksheets?<br />Or better still output a set of excel sheets <a href="https://pear.php.net/package/Spreadsheet_Excel_Writer/docs/latest/Spreadsheet_Excel_Writer/Spreadsheet_Excel_Writer_Workbook.html#methodaddWorksheet">sequentially numbered</a> and zip them up....</p><p>The original PEAR package that has this file with all inclusions expanded out is at:<br /><a href="https://github.com/pear/Spreadsheet_Excel_Writer">https://github.com/pear/Spreadsheet_Excel_Writer</a></p><p>http://hotexamples.com/examples/-/Spreadsheet_Excel_Writer_BIFFwriter/-/php-spreadsheet_excel_writer_biffwriter-class-examples.html</p><p>https://fossies.org/dox/SimpleGroupware_0.745/classSpreadsheet__Excel__Writer__BIFFwriter.html</p><p>Other Excel Libraries:<br />C++ - https://www.codeproject.com/Articles/42504/ExcelFormat-Library<br />PHP - https://github.com/PHPOffice/PHPExcel</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-21T18:21:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27872#p27872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Excel rows does not show overs 65536]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27868#p27868" />
			<content type="html"><![CDATA[<p>I don&#039;t know how to do this. Maybe we could wiki it until someone can help. Will you apmuthu, please?</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-21T14:30:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27868#p27868</id>
		</entry>
</feed>
