當(dāng)前位置:
首頁 >
FastReport使用
發(fā)布時(shí)間:2025/7/14
68
豆豆
生活随笔
收集整理的這篇文章主要介紹了
FastReport使用
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1、控件、參數(shù)賦值
try{FastReport.Report report = new FastReport.Report();string filename = @"C:\Users\Administrator\Desktop\Template\bdcqzs.frx";report.Load(filename);string textBarcode = "ceshi001";FastReport.TextObject pTextPrint = report.FindObject("txtqlr") as FastReport.TextObject;pTextPrint.Text = textBarcode;report.SetParameterValue("gyqk", "gyqk");report.Show();}catch (Exception err){MessageBox.Show(err.Message);}2、報(bào)表打印
FastReport.Report report = new FastReport.Report();string filename = @"C:\Users\Administrator\Desktop\Template\bdcqzs.frx";report.Load(filename);string textBarcode = "ceshi001";FastReport.TextObject pTextPrint = report.FindObject("txtqlr") as FastReport.TextObject;pTextPrint.Text = textBarcode;report.SetParameterValue("gyqk", "gyqk");report.PrintSettings.ShowDialog = false; //不彈出打印設(shè)置框report.PrintSettings.Printer = "Microsoft XPS Document Writer"; // 設(shè)置默認(rèn)打印機(jī). report.Print();?
轉(zhuǎn)載于:https://www.cnblogs.com/leebokeyuan/p/7510757.html
總結(jié)
以上是生活随笔為你收集整理的FastReport使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于querySelector 和 do
- 下一篇: Blackhat兵器谱新添IOT安全武器