非淡泊无以明志,非宁静无以致远 -心静如止水,动于静
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: Do a project which is using reporting service render a report. In this report, it has some date,numeric filed showing. but when try to export the report to excel, the fields which is date, numeric in excel is general text.This issues occurs because reporting service design time must use CDate to con 阅读全文
posted @ 2013-12-24 16:39 烟雨客 阅读(186) 评论(0) 推荐(0)
摘要: 当你用WPF显示控件时,时不时会发现控件或字体出现虚虚的状态。例如:DataGrid的Header,一栏显示得很清晰,隔壁显示的就有些模糊。查了下资料,是因为WPF编程是与特理显示设备无关,用的是逻辑单位。这个逻辑单位在转换成特理单位的过程中,比如转换成像素点的时候,可以出现小数,比如:0.5像素,这个时候是没有办法在特理设备上显示的,所以WPF的策略是在它的两边以虚框显示。这样对于整体来讲就是虚虚地。若想解决这个问题,最好的方式是加上UseLayoutRounding,如果这个特性不能解决问题,就可以控件中把SnapsToDevicePixels特性加上。Stackoverflow上的一个回 阅读全文
posted @ 2013-11-17 10:40 烟雨客 阅读(1312) 评论(0) 推荐(0)
摘要: 本想在网上搜一下,如果在x64平台下,混合调用用c++写的x32, x64 动态链接库。但在网上有找到是说如果判断当前平台是x32还是x64, 然后调用不同路径下面的用c#写的dll(同样的代码在x32,x64下不同编译结果).有一定的参考价值。记录下来public static class MultiplatformDllLoader{ private static bool _isEnabled; public static bool Enable { get { return _isEnabled; } set { ... 阅读全文
posted @ 2013-11-16 09:50 烟雨客 阅读(982) 评论(0) 推荐(0)
摘要: 在windows下除了有IIS外,还有几个常用的web server: IIS Express, Cassini or HttpListener. 今天有看到 一个开源的叫owin的。它是一个在asp.net小组中的人做的。不过它不仅仅是web server,还有middle ware层,host层。没有太仔细研究。有在本机按说明做了一个简单的测试,是可以工作的。待以后看是否能用得上吧。references:http://code-inside.de/blog-in/2012/06/12/owin-what-is-it-about-and-why-is-it-so-cool/http://ww 阅读全文
posted @ 2013-10-28 22:18 烟雨客 阅读(329) 评论(0) 推荐(0)
摘要: 比较快捷的方式是将win8.1下面的firewall关闭。但这并不专业。应该开启firewall高级设置,在高级设置中找到“File and Printer Sharing (Echo Request - ICMPv4-In)”,然后将这一控制项enable即可。注意的是,不同网络类型:private, domain, public. 和不同网络协议:ipv4,ipv6. 阅读全文
posted @ 2013-10-27 10:55 烟雨客 阅读(2474) 评论(0) 推荐(0)
摘要: 当在我的笔记本上win8.1开启了Hyper-V后,在上面安装了另外一个win8.1. 如果让hyper-V上面的OS共享本机的无线网卡?其实很简单,只要在Hyper-V manager中填加一个internal类型的Virtual swich. 然后将hyper-V上面的OS指定使用此internal virtual switch做为自己的网卡。最后一步就是在本机(host)中将无线网卡共享给这个internal网卡就可以实现Hyper-V中的OS共享本机无线网卡上网的目的了reference:http://www.eightforums.com/tutorials/19359-hyper- 阅读全文
posted @ 2013-10-27 10:50 烟雨客 阅读(2383) 评论(0) 推荐(0)
摘要: In OS, we can use sc.exe command to manage mmc windows service. You can start, stop, install, un-install windows service. It is very stateble.Creating a Service:sc.exe create PayCalcService binPath= "C:\Program Files\PaymentCalculation\paycalc.exe" DisplayName= "PaymentCalculationServ 阅读全文
posted @ 2013-10-26 09:45 烟雨客 阅读(264) 评论(0) 推荐(0)
摘要: 我們在很多時候,都要顯示TreeView或TreeGrid. 像jqGrid這種控件可以顯示TreeGrid.但是jqGrid要想顯示正確,必須在傳遞給它數據之前,要將數據集按父子關係排序好。即:ID|ParenetID|value-------------------1 |0 |....2 |1 |....3 |2 |....4 |1 |.... 1 private void button1_Click(object sender, EventArgs e) 2 { 3 DataSet ds = new DataSet(); 4 5 ... 阅读全文
posted @ 2013-10-09 15:40 烟雨客 阅读(285) 评论(0) 推荐(0)
摘要: 这一个dll至少目前知道里面包括了zipPackage,XpsDocument(XML Paper Specification (XPS)).等, 应该是微软提供对各种存储格式如Zip的文件进行处理的SDK。当然这个assembly中一定还有其这的内容,以后有机会再研究。那个可以不用sharpzip之类的,可以直接用.net framework中本身提供的这一功能。可参考:http://msdn.microsoft.com/en-us/library/system.io.packaging.package.aspxhttp://msdn.microsoft.com/en-us/library/ 阅读全文
posted @ 2013-09-28 10:42 烟雨客 阅读(3636) 评论(0) 推荐(0)
摘要: 1. 用Native Office API. 即Microsoft.Office.Interop.Excel.这种方式是用Excel COM组件直接操作。实做的时候,要注意尽量减少COM方法的调用次数,以提高效率。比如向cell中写,可以用Rang的方式一次性地写入多笔,比单个cell写调 用的COM次数少很多。例如:excelSheet.get_Range("A1:H25", Type.Missing).Value2 = bidimensionalObjectArray; 一个好例子是:http://www.codeproject.com/Articles/21519/F 阅读全文
posted @ 2013-09-28 10:29 烟雨客 阅读(693) 评论(0) 推荐(1)
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页