5 Answers, 1 is accepted
Currently we provide a print preview only for WPF version of our diagramming framework. There are limitations in Silverlight when reading and writing settings to the printer.
Actually we share the functionality to split the diagram into pages and visualize it. The part that is missing is reading and writing settings to the printer.
I'm not sure if that functionality is sufficient for achieving your goals. If it is, we would gladly assist you with the solution.
Hristo
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
(using RadControls for WPF Q1 2013)
You could easily hide the grid or the pages by using the following attached properties:
1) BackgroundGrid.IsGridVisible - toggle grid visibility.
2) BackgroundPageGrid.IsGridVisible - toggle page visibility.
You could explore the other attached properties in these classes should you need more customization.
Note that these properties should be attached to a RadDiagram instance like follows:
<
telerik:RadDiagram
primitives:BackgroundGrid.IsGridVisible
=
"..."
primitives:BackgroundGrid.LineStroke
=
"..."
primitives:BackgroundGrid.CellSize
=
"..."
primitives:BackgroundPageGrid.IsGridVisible
=
"..."
primitives:BackgroundPageGrid.LineStroke
=
"..."
/>
Furthermore, we do provide quite extensive samples architecture where we try to highlight the most of our controls (in particular about 8 example for RadDiagram). In case you have missed our online demos, you could find them here.
Hope this helps, please let us know if you need more info.
Greetings,
Hristo
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
We are still using the last release, so I can't test these new functionality (the BackgroundGrid.IsGridVisible properties, in particular). So, I just have one question.
Do these page layout lines only reflect what will be printed -- or does altering the size of the size of each page (BackgroundGrid.CellSize
) alter what is printed? For example, could I alter the CellSize property to fit an entire diagram on one page?Thanks
Page background lines are used only for visual reference. Changing their value does not change printing settings. We left the logic for synchronizing printing settings and page lines to the developer depending on his specific case.
Furthermore, we would be glad to assist you with the migration to latest binaries in case you face any issues.
Hristo
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.