我正在使用nevron(c#)来绘制条形图。然而,打印的图表与原始图表有很大的不同(图例变为灰色块,线条颜色不同)。我不知道发生了什么。在下面的代码中,NPrintManager是Nevron的,其他的来自System.Windows.Forms;有人知道这一点吗?提前谢谢。
private void toolStripBtPrint_Click(object sender, EventArgs e)
{
NPrintManager _printManager = new NPrinManager(_nChartsControl.Document);
try
{
if (_printManager != null)
{
PrintDialog dlgPrint = new PrintDialog();
dlgPrint.UseEXDialog = true;
if (dlgPrint.ShowDialog(this.ParentForm) == DialogResult.OK)
{
_printManager.PrinterSettings = dlgPrint.PrinterSettings;
_printManager.Print();
}
}
}
catch (Exception exc)
{
MessageBox.Show(this.ParentForm,
string.Format("Failed to print. Error:{0}", exc.Message),
"Print error",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
}发布于 2012-01-17 17:39:03
我联系了Nevron支持部门,发现这是Nevron 2010中的一个bug。现在我升级到2011.1(11.11.1.12),问题解决了。
https://stackoverflow.com/questions/7700891
复制相似问题