1.线程的用法无参数的线程: 1 private void button1_Click(object sender, EventArgs e) 2 { 3 Thread thread1 = new Thread(new ThreadStart(fun)); 4 thread1.Start(); 5 } 6 7 private void fun() 8 { 9 int a = 0;10 for (int i = 0; ... Read More
posted @ 2013-04-03 15:59 oceanstar1230 Views(1017) Comments(8) Diggs(2)
这里用的是FastReport 设计的模板,直接调用FastReport模板。1.先引入FastReport.dll文件。2.就以打印一个简单的物品包装条码为例。 2.1设计 这个很简单了,基本和VS开发工具是一样的。只是它的参数是这样定义的。 然后打开,选择PCode双击 OK。 2.2代码 Report report = new Report(); string MFile = @"C:\Users\Sunp\Desktop\test.frx";//FastReport设计后的文件保存的路径。 if (File.Exists(MFile)) { report.Load( Read More
posted @ 2013-02-19 15:01 oceanstar1230 Views(3452) Comments(5) Diggs(1)