06 2021 档案
摘要:例如:打开“E:\Training”文件夹并选中“20131250.html”文件 System.Diagnostics.Process.Start("Explorer.exe", @"/select,E:\Training\20131250.html"); 一句代码搞定!!! 扩展: 1)只打开文
        阅读全文
                
                    posted @ 2021-06-15 17:45  
techNote
    
                
            
摘要:using aspose.cells; ....... public void importExcel(DataTable dt, string fileName, string filePath) { int posStart = 2;//报表内容起始 //设置字体样式 Style style1 
        阅读全文
                
                    posted @ 2021-06-11 22:35  
techNote
    
                
            
摘要: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
    
                
            
摘要:今天update access数据库时,使用了参数化的方式,结果不报错,但是数据也没有更新。经过google发现access使用参数化时,参数位置必须和赋值顺序相同才行,否则更新时就会出现数据无法更新但是也不报错的怪现象。 例如:update tablename set [a]=@a,[b]=@b 
        阅读全文
                
                    posted @ 2021-06-11 18:35  
techNote
    
                
            
摘要:方案(一) 在FRX模板中拖一个Picture控件,对象为Picture1 在VS项目的打印(预览)部分向Picture1推送一个图片,代码如下 ((PictureObject)report.FindObject("Picture1")).ImageLocation = @"pic\13032319
        阅读全文
                
                    posted @ 2021-06-04 15:08  
techNote
    
                
            
摘要: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
    
                
            
摘要:BitmapSource和WriteableBitmap一些类听说是用 using System.Windows.Media.Imaging;可是我发现VS中没有什么System.Windows.Media.Imaging之类的框架,这就苦逼了,在网上也找不到,无意间发现原来引用不叫System.W
        阅读全文
                
                    posted @ 2021-06-03 14:53  
techNote
    
                
            
摘要: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
    
                
            
摘要:关于水晶报表推(送数据到报表)模式在C# Winform中的应用注意事项: (1)要修改app.config为 <?xml version="1.0"?><configuration><startup useLegacyV2RuntimeActivationPolicy="true">//这行use
        阅读全文
                
                    posted @ 2021-06-01 10:43  
techNote
    
                
            
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号