hi im using Goxam for diagramming, right now i can print a diagram in
one Page and what i need is that if my Diagram is very large, it should
be split in more than one Page, and i dont know how to do this.
XAML:
<go:Diagram x:Name="myDiagram1" Grid.Column="2" Padding="200"
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"
NodeTemplateDictionary="{StaticResource NodeTemplateDictionary}"
LinkTemplateDictionary="{StaticResource LinkTemplateDictionary}"
Canvas.Left="8" Canvas.Top="384" Opacity="1" FontFamily="Arial"
AllowScroll="True" ClipboardPasted="myDiagram1_ClipboardPasted"
GridSnapEnabled="True" GridSnapCellSize="25,25" GridVisible="False"
HorizontalAlignment="Center" VerticalAlignment="Center">
<go:Diagram.DraggingTool>
<local:CustomDraggingTool DragOverSnapArea="DiagramAndNodes"
DropOntoEnabled="True" />
</go:Diagram.DraggingTool>
<go:Diagram.PrintManager>
<go:PrintManager Scale="NaN" ForegroundTemplate="{StaticResource
PrintBorderTemplate}" PageOptions="FullGridBackground" Margin="30 70 30
70" />
</go:Diagram.PrintManager>
</go:Diagram>
C#:
private void ButtonPrint_Click(object sender, RoutedEventArgs e)
{
myDiagram1.PrintManager.Parts = myDiagram1.SelectedParts; // User can select what
they want to print!
activeDiagram.CommandHandler.Print();
}