<div dir="ltr">There have been several requests to be able to create Excel files natively with Cedarville Download.  Here are some thoughts on adding that functionality.  Feel free to comment on pros/cons of each.<div><br>

</div><div>1  Write code within Download to create the Excel file.  This would involve creating various XML parts (with complicated assignment of data like text strings going into a relationship file while other cell content goes into a different file) and then zipping the result.  Developing the Excel-related coding would take a long time to write and perfect...and then actually creating the zip file would take some sort of system call.</div>

<div><br></div><div>2  Find some Excel-creating, open-source software that accepts calls from Unibasic.  I've not been successful in finding this kind of software.</div><div><br></div><div>3  Provide a hook within Download to call a commercial product that creates the Excel file.  (Would this call occur for each row of the spreadsheet?  or after generating the entire spreadsheet?) </div>

<div><br></div><div>4  Provide a hook within Download to execute a "convert CSV to XLSX" utility.  Utilities seem to be freely available in Perl and PHP.  Download would create the CSV file (or, perhaps, a tab-delimited file), call the conversion utility, and then delete the CSV file.</div>

<div><br></div><div>One of the potential issues is the use of memory.  Creating the entire spreadsheet in memory for large data sets could be problematic.  Writing out an intermediate file (option 4) or intermediate files (option 1) would help address this concern.</div>

<div><br></div><div>I look forward to hearing your suggestions...</div><div><br></div><div><br></div><div><br></div><div><br clear="all"><div>David Rotman, Ph.D.<br>Associate Vice President for Technology<br>Chief Information Officer<br>

Cedarville University<br>251 N. Main Street<br>Cedarville, OH 45314<br><a href="mailto:rotmand@cedarville.edu" target="_blank">rotmand@cedarville.edu</a><br>voice 937-766-7905<br>fax 937-766-8819<div><img src="http://www.cedarville.edu/~/media/Images/Information-Technology/IT-logo-for-signature.jpg"><br>

</div></div>
</div></div>