This is a migrated thread and some comments may be shown as answers.

Print Preview from Org Chart sample?

5 Answers 88 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Marian
Top achievements
Rank 1
Marian asked on 15 Oct 2012, 05:40 PM
Hi, I've been working with the Org Chart sample and I have it working the way I want to. I need to be able to utilize the Print function, which is working properly. However, is there anyway to create a Print Preview screen so the user has an idea of how the diagram will look on the page?

5 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Oct 2012, 07:12 AM
Hi,

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.

Greetings,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Marcel
Top achievements
Rank 1
answered on 21 Feb 2013, 04:10 PM
Is it possible to disable or hide only the the print preview's page separation lines on a RadDiagram independent from the background grid? I've been looking for a property, DiagramCommand or something similar to 'SwitchGridVisibility' but it seems that there doesn't exist something like that.
(using RadControls for WPF Q1 2013)
0
Hristo
Telerik team
answered on 26 Feb 2013, 07:36 AM
Hi Marcel,

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.

0
Tom
Top achievements
Rank 1
answered on 01 Apr 2013, 02:59 PM
Hristo --

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
0
Hristo
Telerik team
answered on 03 Apr 2013, 06:54 AM
Hi Tom,

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.

Regards,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Marian
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Marcel
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Share this question
or