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

Printing page range

4 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 05 Dec 2011, 02:53 PM
Hello,
I've used the PrintExtension class you've provided with WPF 2011 SP1 examples but when I click the print button it's not possible to set a range of pages... if my grid has 20.000 records I don't want be responsable of Amazonian's forest harvest....
is it possible to choose a range? how to enable it? my Grid doesn't have pagination but as far I've seen that's no the problem...

Thanks

Paolo

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 08 Dec 2011, 02:21 PM
Hello Paolo,

As you may have noticed, a clone RadGridView is created for printing purposes in the ToPrintFriendlyGrid. There the  ItemsSource of the cloned GridView is set. You could set what range you like to this ItemsSource. Then the items in this ItemsSource will be printed.

What is the exact version of the controls that you use? With the Q2 2011 version of the RadControls, you may use the RadDocument for printing to PDF. This is possible with the RadRichTextBox. You could review the online demo for an example on how you could print to a PDF.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michele
Top achievements
Rank 2
answered on 09 Dec 2011, 08:42 AM
Hello Didie,
I've just seen the demo on RadDocument but I've huge doubt about printing in that way... consider the case I've 10.000 items in my gridview... I wish to print page 20-21-22-23 ... how can I know exacly how many entry will stay per page? if my grid has 10 column ... how can I tell that the data will go on 2 lines so I miss some entries?

considering in some way I can  handle this... how can I intercept with print preview I want to choose range from page 20-23?

Thanks
Paolo
0
Vlad
Telerik team
answered on 09 Dec 2011, 08:46 AM
Hi,

I strongly suggest you to use Telerik Reporting instead in such (more advanced) scenarios.

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michele
Top achievements
Rank 2
answered on 09 Dec 2011, 08:51 AM
Vlad this mean that for each RadGrid I've I need to create a report... double of the work...
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Michele
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or