css - how to create cell border of xls using xml in ruby on rails? -
how create cell border of xls using xml in ruby on rails? trying generate xls file following way
<?xml version="1.0"?> <workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/tr/rec-html40"> <worksheet ss:name="grn register"> <worksheetoptions xmlns="urn:schemas-microsoft-com:office:excel"> <pagesetup> <layout x:orientation="landscape"/> <header x:margin="0.1"/> <footer x:margin="0.1"/> <pagemargins x:bottom="0.5" x:left="0.4" x:right="0.4" x:top="0.5"/> </pagesetup> <fittopage/> <print> <fitheight>100</fitheight> <validprinterinfo/> <horizontalresolution>600</horizontalresolution> <verticalresolution>600</verticalresolution> </print> <selected/> <panes> <pane> <number>3</number> <activerow>6</activerow> <activecol>8</activecol> </pane> </panes> <protectobjects>false</protectobjects> <protectscenarios>false</protectscenarios> </worksheetoptions> <table> <% if current_personnel.organisation.name=='hi-tech' %> <column ss:width="51.75"/> <column ss:width="179.25"/> <column ss:index="4" ss:width="270.75"/> <% end %> <% if current_personnel.organisation.name=='hi-tech' %> <row> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string">grn register</data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> <cell><data ss:type="string"></data></cell> </row> <% end %>
how add border through cell in excel?is table fo table sufficient solve problem?
Comments
Post a Comment