0
我正在使用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);
}