使用poi进行excel的读写

使用poi完成excel的导入和导出

http://zhoushijie5230.iteye.com/blog/2114964  //参考代码 将excel导入数据库

http://www.iteye.com/problems/90868  //注意导包

http://blog.csdn.net/ptzrbin/article/details/8751293  //将数据库数据导出excel


使用FileSaver.js,jquery.wordexport.js可以实现将页面的东西存入word文档()


$("#word").click(function() {
      $("#pagecontent").wordExport("页面获取word");// 将需要存为word 的部分用div 包着   #pagecontent 
 });



使用jQuery.print.js可以实现打印功能,也可以用window.print实现打印(但需要考虑怎么局部打印)


http://blog.csdn.net/JodenHe/article/details/70313604?locationNum=3&fps=1

$( "#myElementId" ).print({
     globalStyles: true ,//是否包含父文档的样式,默认为true
     mediaPrint: false ,//是否包含media='print'的链接标签。会被globalStyles选项覆盖,默认为false
     stylesheet: null ,//外部样式表的URL地址,默认为null
     noPrintSelector: ".no-print" ,//不想打印的元素的jQuery选择器,默认为".no-print"
     iframe: true ,//是否使用一个iframe来替代打印表单的弹出窗口,true为在本页面进行打印,false就是说新开一个页面打印,默认为true
     append: null ,// 将内容添加到打印内容的后面
     prepend: null ,//将内容添加到打印内容的前面,可以用来作为要打印内容
     deferred: $.Deferred()// 回调函数
});  

猜你喜欢

转载自blog.csdn.net/java_zhaoyu/article/details/78882423