会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
techNote
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
24
25
26
27
28
29
30
31
32
下一页
2021年6月15日
C# winform打开文件夹并选中指定文件
摘要: 例如:打开“E:\Training”文件夹并选中“20131250.html”文件 System.Diagnostics.Process.Start("Explorer.exe", @"/select,E:\Training\20131250.html"); 一句代码搞定!!! 扩展: 1)只打开文
阅读全文
posted @ 2021-06-15 17:45 techNote
阅读(562)
评论(0)
推荐(0)
2021年6月11日
Aspose.Cells读取导入导出excel文件
摘要: using aspose.cells; ....... public void importExcel(DataTable dt, string fileName, string filePath) { int posStart = 2;//报表内容起始 //设置字体样式 Style style1
阅读全文
posted @ 2021-06-11 22:35 techNote
阅读(331)
评论(0)
推荐(0)
C# Microsoft.office.interop.excel引用后导出EXCEL代码中的(安装office就有应该)单元格格式控制
摘要: Excel.Range r =mySheet.get_Range(mySheet.Cells[1,1],mySheet.Cells[DT.Rows.Count + 2,DT.Columns.Count - 3]); r.NumberFormat="@"; //设置单元格格式为文本类型,文本类型可设置
阅读全文
posted @ 2021-06-11 22:30 techNote
阅读(1291)
评论(0)
推荐(0)
Access使用参数化UPDATE数据时,数据无法更新的问题, 参数的定义顺序一定要和SQL语句一致,否则update不成功(转自高手)
摘要: 今天update access数据库时,使用了参数化的方式,结果不报错,但是数据也没有更新。经过google发现access使用参数化时,参数位置必须和赋值顺序相同才行,否则更新时就会出现数据无法更新但是也不报错的怪现象。 例如:update tablename set [a]=@a,[b]=@b
阅读全文
posted @ 2021-06-11 18:35 techNote
阅读(194)
评论(0)
推荐(0)
2021年6月4日
C# FastReport打印图片的几种办法
摘要: 方案(一) 在FRX模板中拖一个Picture控件,对象为Picture1 在VS项目的打印(预览)部分向Picture1推送一个图片,代码如下 ((PictureObject)report.FindObject("Picture1")).ImageLocation = @"pic\13032319
阅读全文
posted @ 2021-06-04 15:08 techNote
阅读(977)
评论(0)
推荐(0)
C# FastReport打印图片
摘要: private void Form1_Load(object sender, EventArgs e) { Report report = new Report(); report.Load("2.frx"); //这样写 report.RegisterData(CommonCode.GetData
阅读全文
posted @ 2021-06-04 11:25 techNote
阅读(836)
评论(0)
推荐(1)
2021年6月3日
C# using System.Windows.Media.Imaging;该引用哪个dll
摘要: BitmapSource和WriteableBitmap一些类听说是用 using System.Windows.Media.Imaging;可是我发现VS中没有什么System.Windows.Media.Imaging之类的框架,这就苦逼了,在网上也找不到,无意间发现原来引用不叫System.W
阅读全文
posted @ 2021-06-03 14:53 techNote
阅读(330)
评论(0)
推荐(0)
VS2015同2010下调用FastReport报表打印预览源码
摘要: private void Form1_Load(object sender, EventArgs e) { Report report = new Report(); report.Load("1.frx"); report.RegisterData(CommonCode.GetDataSet().
阅读全文
posted @ 2021-06-03 06:35 techNote
阅读(263)
评论(0)
推荐(0)
2021年6月1日
关于水晶报表推(送数据到报表)模式在C# Winform中的应用注意事项:
摘要: 关于水晶报表推(送数据到报表)模式在C# Winform中的应用注意事项: (1)要修改app.config为 <?xml version="1.0"?><configuration><startup useLegacyV2RuntimeActivationPolicy="true">//这行use
阅读全文
posted @ 2021-06-01 10:43 techNote
阅读(107)
评论(0)
推荐(0)
2021年5月30日
重载:overLoad重写:overRide
摘要: 重载:overLoad重写:overRide重载指的是方法的重载:就是在一个类中,注意是一个类中,多个名字相同参数不同的方法就构成了重载而重写是指父类中的虚的抽象的方法需要在继承它的子类中被重写而得名
阅读全文
posted @ 2021-05-30 11:31 techNote
阅读(67)
评论(0)
推荐(0)
上一页
1
···
24
25
26
27
28
29
30
31
32
下一页
公告