when printing i need to provide 2 views to the operator. 1) Print whole diagram to a single page (This i achieve by setting PrintManager.Scale = double.NaN) 2) Print current (Propably zoomed) visible operators diagram view to a single page
Here i tried arround by setting PrintManager.Bounds = PrintManager.Diagram.GetBounds(); and SetTop() and SetLeft(). - But without success.
Result seems always to be the bottom center of the diagram and never the actual operators diagram view.
Question is, what do i need to set on the PrintManager, to actually print the current operators view of the diagram to a single page?
if (printAll)
{
// Print whole diagram to single page
PrintManager.Diagram.PrintManager.Scale = double.NaN;
PrintManager.Diagram.PrintManager.Print(printDialog);
}
else
{
// Print current operators view of diagram to single page
PrintManager.Diagram.PrintManager.Bounds = PrintManager.Diagram.GetBounds();
PrintManager.Diagram.PrintManager.Scale = double.NaN;
PrintManager.Diagram.PrintManager.Print(printDialog);
}