| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 862 人关注过本帖
标题:怎样将查询结果以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
快速回复:怎样将查询结果以excel表格输出
数据加载中...
 
   



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

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