ChinaUnix.net
相关文章推荐:

asp net导出excel

求救!高手请进! 有个问题困扰了我很久,希望各位朋友帮忙!先谢了! 其实是一个在asp导出excel 的问题,不知大家有什么较好的方法呢? 我想在asp中将查询的结果导出excel表格,可是试了几种网上说的方法都不合适 请高手们指教,最好有实例下载,这样看的更懂了.

by Arrayxqluoye - SQL server - 2005-09-05 18:28:02 阅读(4970) 回复(4)

相关讨论

使用php导出mysql数据库的资料,有个字段是textarea,所以会有回车,导到excel后就会出现换行,其实应该是一个单元格里的,这种情况怎么解决啊?

by annin2013 - PHP - 2013-06-09 18:58:28 阅读(1143) 回复(2)

PHP导出excel方法 使用制表符、换行符的方法 制表符”\t”用户分割同一行中的列,换行符”\t\n”可以开启下一行。[code]view sourceprint? 01 excel.xls”); 04 header(”Pragma: no-cache”); 05 header(”Expires: 0″); 06 /*first line*/ 07 echo “hello”...

php

by feiyang10086 - PHP - 2011-06-03 23:27:54 阅读(2260) 回复(2)

toad 导出excel问题 文字全部都是乱码?\r\n有解决办法吗?

by duhouchen2 - 攻防交流区 - 2009-11-27 09:27:39 阅读(3796) 回复(2)

基本上导出的文件分为两种: 1:类excel格式,这个其实不是传统意义上的excel文件,只是因为excel的兼容能力强,能够正确打开而已。修改这种文件后再保存,通常会提示你是否要转换成excel文件。 优点:简单。 缺点:难以生成格式,如果用来导入需要自己分别编写相应的程序。 2:excel格式,与类excel相对应,这种方法生成的文件更接近于真正的excel格式。 如果导出中文时出现乱码,可以尝试将字符串转换成gb2312,例...

by guoguo-beijing2 - php文档中心 - 2009-06-16 15:20:09 阅读(1288) 回复(0)

在sql server 中察看excel中的数据,在c盘根目录下建立一个test.xls 里面数据如下: 1 2 a b c d 然后: select * FROM OPENROWSET(\'Microsoft.Jet.OLEDB.4.0\', \'excel 8.0;Database=C:\\test.xls;HDR=NO\', \'SELECT * FROM [Sheet1$]\') 结果如下: NULL NULL a b c d 有那位大虾知道为啥1 和 2 不能被select 出来啊?? 我把单元格的属性改成text 也不行哦。。。。。 我有很多excel里的数据需要这样...

by iyjian - SQL server - 2007-04-17 15:58:04 阅读(2860) 回复(7)

我下载了jxl.jar,拿网上的程序做测试出错,帮忙看一下是哪里出了问题?谢谢 excel.java代码如下: package qypx; import java.io.*; import jxl.*; import jxl.write.*; import jxl.format.*; import java.awt.Color; public class excel { public excel(){ } public static void writeexcel(OutputStream os) throws Exception { jxl.write.WritableWorkbook wwb = jxl.Workbook.createWorkbook(os); jxl.wri...

by highsea_jlu - Java - 2005-05-23 16:24:33 阅读(3984) 回复(2)

最近用到了https访问路径下导出execl文件的功能,当时在http 下开发测试的,没想到到了https下面出了问题: 在网上找了些资料,如下: 1.问题描述: 导出excel时,在http下IE和firefox均工作正常,在https下提示:Internet explorer无法打开该站点,请求的站点不可用或找不到,请再试.以为是缓存文件的原因,清理缓存后依然有这个提示。又怀疑是文件格式错误,导致生成的文件出错,然而http下能正常导出。 后又想到pdf可以正常导出...

by ciscoeden - 虚拟化与云服务 - 2011-12-20 17:13:45 阅读(1074) 回复(0)

Javascript导出excel的方法 本文仅仅是描述前端WEB或者是在做demo时如何简单实现excel导出。 [1]、主要的测试代码如下: Html代码 Jav... </p> <p class="news_tag"> <a href="http://bbs.chinaunix.net/tag-thread-5540-1.html" target="_blank">web</a> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-24969109.html" target="_blank">三里屯摇滚 </a> - <a href="http://bbs.chinaunix.net/forum-80-1.html" target="_blank">Web开发</a> - 2011-09-30 16:34:06 阅读(1562) 回复(1) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-1846430-1-1.html" target="_blank"> JS<font color="red">导出</font><font color="red">excel</font>的问题 </a></h2> </div> <p> 在下有个问题想请教各位: 我的目的:在<font color="red">asp</font>X页面写JS 代码生成<font color="red">excel</font>文件 我的问题:同样的代码在.html中可以运行没有问题;可是在.<font color="red">asp</font>x中就提示 “automation服务器不能创建对象” 代码如下: <body> <input type="button" value="text" onclick="get<font color="red">excel</font>()" /> <script type="text/javascript"> function get<font color="red">excel</font>() { var oXL = new ActiveXObject("<font color="red">excel</font>.Application"... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-308953.html" target="_blank">ssqhan </a> - <a href="http://bbs.chinaunix.net/forum-232-1.html" target="_blank">服务器应用</a> - 2011-01-28 18:49:00 阅读(1895) 回复(1) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-1225848-1-1.html" target="_blank"> PHP和<font color="red">excel</font>导入<font color="red">导出</font> </a></h2> </div> <p> \n"; if ($label != '') { $content .= "{$label} :\n"; } $content .= htmlspecialchars(print_r($vars, true)); $content .= "\n\n"; } else { $content = $label . " :\n" . print_r($vars, true); } if ($return) { return $content; } echo $content; return null; } include_once ("./includes.inc"); include_once ("./settings.inc"); include_o... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-366408.html" target="_blank">panzt </a> - <a href="http://bbs.chinaunix.net/forum-135-1.html" target="_blank">php文档中心</a> - 2008-07-23 17:48:01 阅读(1592) 回复(0) </div> </div> <div class="friendly_link"> <div class="friendly_con1"> <div class="f_link_tit">盛拓传媒:</div> <p><a href="http://www.it168.com">IT168</a> | <a href="http://www.pcpop.com">泡泡网</a> | <a href="http://www.autohome.com.cn">汽车之家</a> | <a href="http://www.che168.com">二手车之家</a> | <a href="http://www.qudao168.com">渠道168</a> | <a href="http://www.itpub.net/">ITPUB</a> | <a href="http://www.ixpub.net/">IXPUB</a> | <a href="http://www.chinaunix.net/">ChinaUnix</a> | <a href=" http://www.jimi168.com/">安卓之家</a> | <a href="http://www.app111.com/">苹果园</a> | <a href="http://www.gqt168.com/">家商城</a> | <a href="http://bbs.app111.com/">苹果论坛</a></p> <div class="clear"></div> </div> </div> <div id="footer"> <div class="dot1"><a href="http://www.bj.cyberpolice.cn/index.jsp" class="n1"></a><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202008062400006"></a><a href="http://ulic.baidu.com/client/clientDetailCerInfo.do?id=1602"></a></div> <p class="p"> <a href="http://www.it168.com/bottomfile/about.shtml" rel="nofollow">盛拓传媒简介</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" rel="nofollow">关于IT168</a> | <a href="http://www.it168.com/bottomfile/hzhb.shtml" rel="nofollow">合作伙伴</a> | <a href="http://www.it168.com/bottomfile/ggfw.shtml" rel="nofollow">广告服务</a> | <a href="http://www.it168.com/bottomfile/sytk.shtml" rel="nofollow">使用条款</a> | <a href="http://www.it168.com/bottomfile/tgzn.shtml" rel="nofollow">投稿指南</a> | <a href="http://www.wintalent.cn:8031/wt5/sequelmedia/web/index" rel="nofollow">诚聘精英</a> | <a href="http://www.it168.com/bottomfile/lxwm.shtml" rel="nofollow">联系我们</a> | <a href="http://www.itpub.net/forum.php">ITPUB论坛</a> | <a href="http://www.it168.com/bottomfile/sitemap/sitemap.html" rel="nofollow">网站导航</a> | <a href="http://archive.it168.com/" rel="nofollow">往日回顾</a> </p> <address> 北京皓辰网域网络信息技术有限公司. 版权所有 <a href="http://www.it168.com/images/icp.jpg"><font color="#666666">京ICP证:060528号</font></a> 北京市公安局海淀分局网监中心备案编号:1101082001<br> <font color="#666666">广播电视节目制作经营许可证:编号(京)字第1149号</font> </address> <div style=" color:#666;margin-top:10px; text-align:right;">ITPUB推荐文章解答你所有技术难题</div> <div class="clear"> </div> </div> </div> <!-- 统计 START --> <script language="javascript" src="http://stat.it168.com/pv.js"></script> <script> function sendPV(){ var pvTrack = new PvTrack(); pvTrack.type = 35; // 频道类别ID pvTrack.channel = 461; // 频道ID pvTrack.pageType = 0; pvTrack.track(); } window.setTimeout("sendPV()", 1000); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20237423-2']); _gaq.push(['_setDomainName', '.chinaunix.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div style='display:none'> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E")); </script></div> <!-- END STAT PV --> <!-- <script type='text/javascript' src='http://168.it168.com/js/597.js'></script> --> <script>if(typeof(BLA)!='undefined'){BLA();}</script> </body> </html>