WinForm中 直接调用Excel的打印预览功能,但不显示Excel文件using Microsoft.Office.Interop.Excel; //引用public void PrintPriviewExcelFile(string filePath){ Microsof...
官方帮助文档FileStream Values部分有相关介绍.fn format_txt filepath filetext =( if doesFileExist filepath == true then ( fin = openfile filepat...
分类:
其他好文 时间:
2014-09-08 01:01:06
阅读次数:
302
1、未在本地注册string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FilePath + ";Extended Properties='Excel 8.0;HDR=NO;IMEX=1';";当利用上边的字符串操作xls...
分类:
其他好文 时间:
2014-09-05 21:08:52
阅读次数:
206
//从plist文件中读取数据-(void)readDataFromPlist{//1.先获取文件路径NSString*filePath=[[NSBundlemainBundle]pathForResource:@"Book"ofType:@"plist"];//2.根据路径初始化字典对象self.dic=[NSMutableDictionarydictionaryWithContentsOfFile:filePath];//将不可边字典变成..
分类:
其他好文 时间:
2014-09-05 03:25:11
阅读次数:
155
#加载winapi
$ini = Add-Type -memberDefinition @"
[DllImport("Kernel32")]
public static extern long WritePrivateProfileString (
string section ,
string key ,
string val ,
string filePath );
[DllImport(...
最近项目中需要导出Excel数据表单,试了好几种方法,都感觉不怎么顺手,然后老大喊我去看看OLEDB,我接着花世间去学习了一下,感觉还挺不错的。
开始在网上找了一些代码,
然后需要配置连接字符串
我电脑上安装的office 2007:
所以连接字符串为:"Provider=Microsoft.Ace.OleDb.12.0;Data Source=" + filepath + ";Exten...
分类:
数据库 时间:
2014-09-04 11:52:29
阅读次数:
353
String filePath = request.getParameter("filePath");
filePath = request.getServletContext().getRealPath("/") + filePath;
String targetPath = request.getParameter("target");
File file = new File(file...
分类:
编程语言 时间:
2014-09-04 10:34:49
阅读次数:
244
/// /// 功能:将Canvas画布内容保存为jpg格式图片 /// 作者:GYS | 日期:2013年9月9日 /// /// /// private void SaveAsJpeg(string filePath, Canvas pixBox) { try { RenderTarge...
分类:
其他好文 时间:
2014-09-03 22:37:47
阅读次数:
259
import osimport sys#coding=utf-8def CountTime(filepath): try: fobj = open(filepath,'rb') total = 0 times = 0 line = fob...
分类:
其他好文 时间:
2014-09-02 19:42:55
阅读次数:
144
首先自己写一个视频实体类,代码如下: public?class?VideoEntity?{
public?int?ID;//ID
public?String?title;//标题
public?String?filePath;//绝对路径
public?int?size;//大小
public?int?d...
分类:
其他好文 时间:
2014-09-02 18:15:55
阅读次数:
214