本文介绍了打印时,标题会在下一页重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello. I am using Another DataGridView Printer (DGVPrinter) for printing datagridview.
1. Everyhting is ok, but page title repeats in each page, that needed to be only in first page.
2. How can I add some label texts to print page?
3. Another question is about prntpreview dialog. There is no options to choose printers in printpreview. Code is as follows:
private void printToolStripMenuItem_Click(object sender, EventArgs e)
{
DGVPrinter printer = new DGVPrinter();
printer.Title = "Kreditin ödəmə planı";
printer.TitleAlignment = StringAlignment.Center;
printer.PageNumbers = true;
printer.PageNumberInHeader = false;
printer.PorportionalColumns = true;
printer.HeaderCellAlignment = StringAlignment.Center;
//printer.Footer = "Footer text";
printer.FooterSpacing = 15;
printer.PrintPreviewNoDisplay(dataGridView1);
}
我的尝试:
我搜索谷歌这些,找不到任何解决方案。
What I have tried:
I searched google about these, couldn't find any solution.
推荐答案
这篇关于打印时,标题会在下一页重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!