Dear guru,
I use NPrintManager to print the charts. However, it turns out to be a very different one.
Legend is not shown correctly and the line color is different. Does anyone know how to deal with that?
My codes here:
NPrintManager _printManager = new NPrintManager(_nChartsControl.Document);
private void toolStripBtPrint_Click(object sender, EventArgs e)
{
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);
}
}