The file in the $ objWriter-> save('my-test'.mongoid.'.xls '); to be exported, but the information of the entire page is saved.
Source: Internet
Author: User
The exported objects are stored in the 'my-test'.mongoid.'.xls 'file, but the information on the entire page is saved. for details, see $ phpexceldao = $ db-& gt; query (& quot; selecta. uri, B want to export the $ objWriter-> save('my-test'.mongoid.'.xls '); file, but actually save the information of the entire page.
$ Phpexceldao = $ db-> query ("select. uri, B. order_id, B. product_id, B. qty, B. goods_groups, B. attr,. product_img, d. order_sn, d. dateline, c. supplier_name from ". RP_TABLEPRE. "order_goods as B left join product as a on. product_id = B. product_id left join supplier as c on c. supplier_name = B. supplier_name left join 'order' as d on d. order_id = B. order_id where B. order_id = $ id ");
$ ObjPHPExcel = new PHPExcel ();
// Row height
For ($ I = 2; $ I <= 17; $ I ++)
{
$ ObjPHPExcel-> getActiveSheet ()-> getRowDimension ($ I)-> setRowHeight (22 );
}
$ I = 2;
If ($ phpexceldao ){
While ($ row = mysql_fetch_array ($ phpexceldao )){
$ ObjPHPExcel-> getActiveSheet ()-> setCellValue ('A1', 'stocking out ');
$ ObjPHPExcel-> getActiveSheet ()-> setCellValue ('A'. $ I, $ row [uri]);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.