7 Answers, 1 is accepted
In Silverlight you are forced to open the system Print Dialog Window. This is done with security considerations.
So even if you do not show the diagrams to the user, the print dialog will pop up and ask for confirmation.
Could you provide us a bit more details about your solution and requirements?
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I don't mind for the print dialog... that is even exactly what i would want.
This is my problem:
I'm using the diagram component as a way to create a powerpoint-like application. I have a number of "slides", which i display in miniature and when the user clicks a slide, i use a centrally placed diagram component to allow the user to edit the selected "slide".
This has all worked wonderfully well so far!
The challenge at hand now is... how do i print this "presentation" without having to visually load them in one by one before print or without requiring them to print them one by one.
So, for now the best option is to create a custom print-dialog (and paginator, see this article for instance). This is not as difficult as it might seem at first and it allows you to have a much deeper control (parametrization) over the output.
Currently the feature you need is not in the planning but thanks for letting us know how you're using RadDiagram! You can always post a feature request in PITS.
Thanks for the lightning-fast-reaction. I can see how this could work, thanks for the tip!
Would it be at all possible to help me on the way with the "OnRender" method?
How would i go about loading the slide in there?
Can i use the diagram for that somehow or do i need to really "draw" on the page?
It seems to me that the most likely approach would be to load the slide in a hidden diagram, export it to an image and place it on the document, then load the next slide into the diagram, export it to an image and place it on the document.Would this work you think?
This article is for WPF, and there seems to be no Silverlight counterpart i can find.
Can you help me out here?
Give it a try, if you're stuck, ping me here.
I agree, it will most definately be a lot simpeler then powerpoint and my ambition is not to mimic powerpoint in Silverlight. My application will offer certain things specific to the project that is very difficult to achieve in powerpoint and it will avoid having a dependency on powerpoint itself.
That being said, i have cooked up following code for who ever may be interested in accomplishing a similar task:
On the xaml side:
On codebehind side
It is incredibily primitive, and it doesn't give a particularly nice output either, as the cloud will be as big as the page, but this is related to the export features combined with the features of the PrintDocument and i will have to study those things next, but the key thing is that it works.
Best Regards and thanks for putting me on my way,