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:CustomDraggingToolDragOverSnapArea="DiagramAndNodes"DropOntoEnabled="True"/></go:Diagram.DraggingTool><go:Diagram.PrintManager><go:PrintManagerScale="NaN"ForegroundTemplate="{StaticResourcePrintBorderTemplate}" PageOptions="FullGridBackground" Margin="30703070"/></go:Diagram.PrintManager></go:Diagram>
C#:privatevoidButtonPrint_Click(object sender,RoutedEventArgs e){
myDiagram1.PrintManager.Parts= myDiagram1.SelectedParts;// User can select what
they want to print!
activeDiagram.CommandHandler.Print();}
thanx for ur Answer, but i would like to know if there is another way, becuase i set the Scale=“1”, it split my diagram into more Pages but the Printing didnt display the rest of my Diagram, there was some missing Nodes.
hi im using Windows 7 Enterprise
GoWPF 1.3.5.4
i set the scale to 0.6 and myDiagram1.PrintManager.Bounds = myDiagram1.Panel.DiagramBounds;
it work, it print 6 Pages and my model is just displayed in two Pages and the rest ist blank.
how could i solve this problem
Are there supposed to be nodes on pages 3 and 6?
In other words, in your diagram can you scroll to the right and see nodes to the right of those shown printed on pages 2 and 5?
When I try printing with a scale of 0.8 using the Planogram sample, which lets me set the printing scale, everything prints just fine, all the way to the right (my example was four pages wide).
Of course not all printed pages are guaranteed to have any content printed on them, because it always prints a rectangular grid of pages, and some of those pages might be blank.
However, assuming there aren’t any missing nodes but just some unexpected blank printed pages, that might be because the padding on the diagram is large, causing the Diagram.Panel.DiagramBounds to be a lot larger than the area occupied by the nodes and links.
As I said earlier, your problem is probably caused by setting the Diagram.Padding to be a large value (200). You can try setting it to a small value. Even without changing it, you can see its effects by not setting the PrintManager.PageOptions = “Full…”.
If you don’t set PrintManager.PageOptions, you’ll get a better impression of how much of the document (i.e. the Diagram.Panel.DiagramBounds) crosses over onto pages 3 and 6.
And as I said before, the smaller the value of Diagram.Padding, the less empty space is reserved along the margins, both when printing and in the interactive Diagram.