查看: 919|回复: 5
|
new line with same column for excel file--urgent
[复制链接]
|
|
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=excelfile.xls");
header("Pragma: no-cache");
header("Expires: 0");
i had created an excel file by set the header.
now my problem is how can i go to new line in one column???
i had using tag "<br />" but it go to next row with same column..
but now my supervisor required to set it to new line in same column..
how can i set it??
thanks. |
|
|
|
|
|
|
|
发表于 30-8-2006 10:16 PM
|
显示全部楼层
if i not mistaken, to output excel, you better use table to control for each coloum or row. |
|
|
|
|
|
|
|
发表于 31-8-2006 02:35 PM
|
显示全部楼层
原帖由 8years 于 30-8-2006 10:16 PM 发表
if i not mistaken, to output excel, you better use table to control for each coloum or row.
try "\n" |
|
|
|
|
|
|
|
楼主 |
发表于 31-8-2006 08:56 PM
|
显示全部楼层
原帖由 zerocool 于 31-8-2006 02:35 PM 发表
try "\n"
try be..but also cant |
|
|
|
|
|
|
|
楼主 |
发表于 31-8-2006 08:58 PM
|
显示全部楼层
原帖由 8years 于 30-8-2006 10:16 PM 发表
if i not mistaken, to output excel, you better use table to control for each coloum or row.
i use table alre..but i want show out some text in new line...
when i use <br /> it go to next row within same column....then for other column jz empty... |
|
|
|
|
|
|
|
发表于 1-9-2006 04:41 PM
|
显示全部楼层
you cant do break even you are inside in excel, you can fix the coloum width, then it will wrap the text to be next line but same row same coloum. |
|
|
|
|
|
|
| |
本周最热论坛帖子
|