Profile Picture

Chart printed differs greatly from the original one

Posted By bargitta chen 13 Years Ago
Author
Message
bargitta chen
explanationmark Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 18, Visits: 1
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);
}
}

Attachments
Capture.PNG (57 views, 83.00 KB)



Similar Topics


Reading This Topic