Paper size preview in diagram grid

Hi,

I would like to add a page format print preview in the grid of my diagram, like in excel when you check the “print” checkbox in Page Layout -> sheet options -> GridLines. Identifiable lines would then appear, separating my grid in rectangles representing the paper format I chose to help for printing. I tried to play with the cellSize and gridPattern’s interval and offset to deal with it but it doesn’t seem natural, is there a layout or something I could use that would be more suitable ?

Thank you !

Look at the in-place print preview that is implemented in the Entity Relationship sample in GoWpfDemo. You’ll want to use the PreviewingPrintManager and optionally the PrintPreviewToolManager.