在使用另一台DataGridView打印机打印文档时,我试图在页面中仅允许有一个字幕
但是当我打印文档时,每页中都会反复出现字幕
这是要打印的代码:
private void BunifuFlatButton16_Click_1(object sender, EventArgs e)
{
DGVPrinter printer = new DGVPrinter();
printer.Title = "NGP Report";
printer.SubTitle = "Subtitkle";//Here
printer.PageNumbers = true;
printer.PageNumberInHeader = false;
printer.PorportionalColumns = true;
printer.Footer = totalss();
printer.HeaderCellAlignment = StringAlignment.Near;
printer.KeepRowsTogether = true;
printer.FooterSpacing = 15;
printer.ColumnWidth = DGVPrinter.ColumnWidthSetting.CellWidth;
printer.PrintMargins.Left = 0;
printer.PrintMargins.Right = 0;
printer.PrintDataGridView(advancedDataGridView1);
}
这是我获得ADGV打印机的站点
https://www.codeproject.com/Articles/18042/Another-DataGridView-Printer