上一页 1 2 3 4 5 6 ··· 10 下一页
  2012年3月26日
摘要: 这几天在做套打的方案,最终决定用PDF做。用Acrobat做PDF表单文件,再使用itextsharp填表功能完成。但是出现多语言(中日韩)填表的情况,查了很多方法,做了不少测试,最后解决。示例代码如下: varreader=newPdfReader(/*FormFile*/);varstamper=newPdfStamper(reader,newFileStream(result,FileMode.Create));varquery=frompropertyintype.GetProperties()joinfieldinstamper.AcroFields.Fieldsonproperty 阅读全文
posted @ 2012-03-26 14:33 尚書 阅读(541) 评论(1) 推荐(0) 编辑
  2012年3月11日
摘要: 在看FTP Upload And Download 相關書籍時,覺得卡卡的(觀念不通)。 於是我就上去StackFlow找了一下相關文章 目前在網上看到較優的解釋 ,這只是一個12歲的小孩寫的,觀念如此的清晰,羞愧了我 HttpWebRequest is a concrete class that allows you to request in code any sort of file over HTTP. You usually receive it as a stream of bytes. What you do with it after th... 阅读全文
posted @ 2012-03-11 22:20 尚書 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 前言 常用到string.Format方法,每次用到都要上網查說明,心想不如整理成文章懶人包方便自己日後查詢,若有錯誤的地方,請各位不吝指教 標準數值格式 格式 說明 Format Input Output 補充 C 貨幣 {0:C} 1234.567 NT$1,234.57 Currency :C預設到小數2位…C1... 阅读全文
posted @ 2012-03-11 22:17 尚書 阅读(285) 评论(0) 推荐(0) 编辑
  2012年2月29日
摘要: 微软已经放出Windows 8消费者预览版英语、简体中文、法语、德语、日语五大语言版本的ISO镜像,分别包括x86、x64版。简体中文版:64位(3.4GB):http://iso.esd.microsoft.com/WCPDL/BD1B8A49393E30CC9C4E5C88457D73E964F1F3B18/Windows8-ConsumerPreview-64bit-ChineseSimplified.isoSha 1 hash — DF69B851F9A81DECBB16648CC452461894416EB032位(2.6GB):http://iso.esd.microsoft.co 阅读全文
posted @ 2012-02-29 23:39 尚書 阅读(212) 评论(0) 推荐(0) 编辑
  2012年2月3日
摘要: 最近一段时间在做跟某公司数据对接的工作,我们双方的技术人员在观察对接数据的时候,发现部分数据无法通过MD5加密验证。原始代码如下1[HttpPost]2publicActionResultIndex(stringlcData)3{4stringlcDataDecode=HttpUtility.UrlDecode(lcData,Encoding.UTF8);5stringresponse=DoSometing(lcDataDecode);67returnRedirectToAction("Index");8}通过双方数据对比,发现上述代码中lcData的值是已经通过Decod 阅读全文
posted @ 2012-02-03 10:04 尚書 阅读(354) 评论(0) 推荐(0) 编辑
  2012年1月6日
摘要: declare @count intset @count = 0while (@count < 10000)beginprint RIGHT('0000' + CAST(@count AS VARCHAR), 4)set @count = @count +1end 阅读全文
posted @ 2012-01-06 13:51 尚書 阅读(1089) 评论(0) 推荐(0) 编辑
  2011年12月2日
摘要: USE [master]EXEC sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1EXEC sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1EXEC sp_configure 'show advanced options', 1RECONFIGUREEXEC sp_configure 'Ad Hoc Distribu 阅读全文
posted @ 2011-12-02 12:03 尚書 阅读(634) 评论(0) 推荐(0) 编辑
  2011年11月26日
摘要: 用openrowset连接远程SQL或插入数据--如果只是临时访问,可以直接用openrowset--查询示例SELECT * FROM OPENROWSET('SQLOLEDB','Data Source=ServerName;User ID=MyUID;Password=MyPass',数据库名.dbo.表名)--导入示例SELECT * INTO 表 FROM OPENROWSET('SQLOLEDB','Data Source=ServerName;User ID=MyUID;Password=MyPass',数据库名.d 阅读全文
posted @ 2011-11-26 12:11 尚書 阅读(268) 评论(0) 推荐(0) 编辑
  2011年11月24日
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Diagnostics;usingSystem.IO;usingSystem.Linq;usingSystem.Reflection;usingCSharpJExcel.Jxl;usingCSharpJExcel.Jxl.Write;usingCsvHelper.Configuration;namespaceCommon.Extensions{publicstaticclassExcelExtension{publicstaticIEnumerable<T>GetReco 阅读全文
posted @ 2011-11-24 14:12 尚書 阅读(1656) 评论(0) 推荐(0) 编辑
  2011年11月21日
摘要: 1、官方文档的命令是mongod--bind_ip0.0.0.0--logpathd:\mongo\logs--logappend--dbpathd:\mongo\data--directoryperdb--install2、另外不要忘了还要在Windows 2008 R2的防火墙中打开27017和28017端口,在入站规则里加一条就行了。 阅读全文
posted @ 2011-11-21 22:37 尚書 阅读(283) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页