标题:怎样将查询结果以excel表格输出
取消只看楼主
luoyunyun1983
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-20
 问题点数:0 回复次数:1 
怎样将查询结果以excel表格输出

<table border>

<tr>

<th colspan=15>Sales Actual & Forecast by CAT</th>

</tr>

<tr>

<th rowspan=2>CAT</th>

<th colspan=4>Total</th>

<th colspan=2>Q1</th>

<th colspan=3>Q2</th>

<th colspan=2>Q3</th>

<th colspan=2>Q4</th>

</tr>

<tr>

<th>Sales Quota</th>

<th>Actual</th>

<th>Forecast</th>

<th>(Forecast+Actual)/Quota</th>

<th>Sales Quota</th>

<th>Actual</th>

<th>Sales Quota</th>

<th>Actual</th>

<th>Forecast</th>

<th>Sales Quota</th>

<th>Forecast</th>

<th>Sales Quota</th>

<th>Forecast</th>

</tr>

<tr>

<th>CCT</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>CCM</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>CCU</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>CCT</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>CCR</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>CCV</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>CNO</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>Other</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

<tr>

<th>Total</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

<th>1</th>

</tr>

</table>

这是我想要输出的一张表,现在写1的部分是为了看起来更直观,实际上1的位置是要通过变量来获得一定的值。这张表输出后是在web页面上出现的,我希望这张表的布局不变但能以excel表格的形式出现,该怎么写语句呢?

搜索更多相关主题的帖子: excel Roman Times 
2005-04-25 19:42
luoyunyun1983
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-20
得分:0 
怎么样才可以输出成这种CVS格式?
2005-04-26 19:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-16683-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.050644 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved