使用打印文档获取空白页?

时间:2012-11-05 19:43:29

标签: c# printdocument

在此应用程序完美运行之前, 现在我有打印文件的问题,我使用抽绳写报告,但所有数据在循环不打印和其他像正常打印和页脚打印。请问哪里有问题?我的巨大代码就像这样。

posicaoDaLinha = margemSup + (linhaAtual * ToInt32(fonteNormal.GetHeight(e.Graphics)));
e.Graphics.DrawLine(new Pen(Brushes.DarkGray, 15), margemEsq, (posicaoDaLinha + 7.5f), margemDir, (posicaoDaLinha + 7.5f));
e.Graphics.DrawString("DINHEIRO", fonteNormal, Brushes.Black, margemEsq, posicaoDaLinha, new StringFormat());
e.Graphics.DrawString(" R$" + caixa.dinheiro.ToString(), fonteNormal, Brushes.Black, margemEsq + 150, posicaoDaLinha, new StringFormat());
linhaAtual++;

我也试过改变字体但仍然不打印。

0 个答案:

没有答案