FastReport 直接打印怎么控制打印的份数
1个回答
展开全部
有几行 table.Rows就会打印几张标签。用for循环多执行几次就ok了。
......
......
......
for (int i = 0; i < maxI; i++)
{
DataRow row = table.NewRow();
row["ProductName"] = txtProduct.Text.Trim();
row["PackCode"] = Numreport;
table.Rows.Add(row);
}
Report report = new Report();
report.Load(...);
report.RegisterData(...);
report.PrintSettings.ShowDialog = false;
report.Print();
......
......
......
for (int i = 0; i < maxI; i++)
{
DataRow row = table.NewRow();
row["ProductName"] = txtProduct.Text.Trim();
row["PackCode"] = Numreport;
table.Rows.Add(row);
}
Report report = new Report();
report.Load(...);
report.RegisterData(...);
report.PrintSettings.ShowDialog = false;
report.Print();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询