Profile Picture

Stripes are printing incorrectly sometimes

Posted By Ereona 13 Years Ago
Author
Message
Ereona
questionmark Posted 13 Years Ago
View Quick Profile
Forum Member

Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 43, Visits: 1
Hello.
We print the chart control using System.Drawing.Printing.PrintDocument and the following code on document's PrintPage event:

private void OnPrintPage(object sender, PrintPageEventArgs ev)
{
NRectangleF chartBounds = new NRectangleF(ev.MarginBounds.Left, ev.MarginBounds.Top, ev.MarginBounds.Width, ev.MarginBounds.Height);
if (_chartControl != null)
{
NChartPrintView printView = new NChartPrintView(_chartControl.Document, ev.Graphics);
printView.Print(chartBounds);
printView.Dispose();
}
}

But we meet the problem: sometimes the axis's stripes are printing incorrectly (see the attachment - it's a scanned page). Do you know something about it?

Attachments
stripes.jpg (67 views, 165.00 KB)


Similar Topics


Reading This Topic