Hi,
I have been struggling to print a page( xaml UserControl) containing charts and some other informations using PrintDialog. I can print but I have got issues (see the attached images)
-
The quality of the FastLineRenderableSeries is really low (looks like blurred) even though the StrokeThickness is set to its lowest value which is 1.
-
The verticalLines do not cover the entire graph (see the image) even though they are drawn correctly before printing. See on the image attached, their labels are well presented on the X axis but they dont extend to the axis.
-
The graph (FastLineRenderableSeriesis ) looks like is floating, before printing it looks all good (zoomed to extents / covering the whole frame) when printed it’s like there is a space added (all that which is below the blue line) which makes the graph look like it is floating.
I have seen in this forum some other questions and answers on how to print a graph (and only a graph) but not graphs and some other informations on a xaml page which is what I would want.
Here is the Image of the printed paper:
and the image with labels of what’s not Ok:
This is what I do to print:
PrintDialog prnt = new PrintDialog();
if (prnt.ShowDialog() == true)
{
Size pageSize = new Size(prnt.PrintableAreaWidth , prnt.PrintableAreaHeight );
MyUserControl.Measure(pageSize);
PrntFrm.Arrange(new Rect(0, 0, pageSize.Width, pageSize.Height));
prnt.PrintVisual(MyUserControl, "Rapport");
}
Thanks for helping.
Kilosa M.
- Kilosa Magali asked 8 years ago
- You must login to post comments
Please login first to submit.