摘要:
FileInfo file = new FileInfo(@"E:\jj.txt"); StreamReader sr = new StreamReader(@"E:\\dd.txt"); FileStream fs = new FileStream(@"E:\jj.txt", FileMode.Create); StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.GetEncoding("utf-8"))... 阅读全文
posted @ 2012-05-10 19:50
gzh4455
阅读(224)
评论(0)
推荐(0)
摘要:
研究了一下,如何把文件打包成Zip文件。下面是我经历的进程:1. 首先看到了微软本身的打包代码,是通过System.IO.Packaging命令空间来进行打包,你可以点击以上的链接来查看其如何打包!其主要利用PackUriHelper.CreatePartUri来对文件View Code // -------------------------- CreatePackage --------------------------/// <summary>/// Creates a package zip file containing specified/// content and 阅读全文
posted @ 2012-05-10 19:46
gzh4455
阅读(3638)
评论(1)
推荐(0)
摘要:
private void DisableChildControl(Control c) { if (c is TextBox) { (c as TextBox).Enabled = false; } if (c is DropDownList) { (c as DropDownList).Enabled = false; } if (c is DateTimeControl) { (c as DateTimeC... 阅读全文
posted @ 2012-05-10 13:23
gzh4455
阅读(242)
评论(0)
推荐(0)
浙公网安备 33010602011771号