今天在pdf和excel中都实现了在浏览器弹出下载框
将之前在网上查找的生成excel表格代码稍微修改下:
public class CreateSimpleExcelToDisk {
/**
* @功能:手工构建一个简单格式的Excel
*/
private static List getNews() throws Exception
{
List data = new A...
分类:
编程语言 时间:
2014-07-12 16:57:35
阅读次数:
267
1 #region get护理单记录信息XML 2 //将XML文件保存到DataTable 3 private DataTable FromXML2DataTable(string XMLStr,string data_h,string data_...
CONVERT(data_type,expression[,style])convert(varchar(10),字段名,转换格式)说明:此样式一般在时间类型(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar)相互转换的时候才用到.语...
分类:
其他好文 时间:
2014-07-12 15:28:39
阅读次数:
261
本章介绍Ext.form.TextField组件的基本用法:
分类:
其他好文 时间:
2014-07-12 14:48:54
阅读次数:
148
1 #include 2 #include 3 typedef struct Node 4 { 5 int data; 6 struct Node *next; 7 }Node,*LinkList; 8 9 void initList(LinkList *L)10 {11 ...
分类:
其他好文 时间:
2014-07-12 14:38:30
阅读次数:
201
Directives: directive是嵌入到源码中的命令,由汇编编译器识别和执行。 而 Instruction是在运行时被执行的。 例如, .data 属于 directive , 而 mov , add 属于Instruction. 对统一架构的处理器来说,Instruction对所有...
分类:
其他好文 时间:
2014-07-12 14:29:13
阅读次数:
162
BACKGROUND1. FieldInnovations herein pertain to computer virtualization, computer security and/or data isolation, and/or the use of a separation kerne...
分类:
其他好文 时间:
2014-07-12 14:12:35
阅读次数:
205
using System;using System.Collections.Generic;using System.Data.Entity;using System.Data.Entity.Infrastructure;namespace My{ /// Entity Framework公...
分类:
其他好文 时间:
2014-07-12 14:08:06
阅读次数:
181
当您试图从单独的线程更新一个win form时,您将得到如下错误信息:"Cross-thread operation not valid: Control 'progressBar1' accessed from a thread other than the thread it was creat...
分类:
数据库 时间:
2014-07-12 14:04:15
阅读次数:
337
SqlException.Number的所有错误值列表
分类:
数据库 时间:
2014-07-12 14:00:20
阅读次数:
231