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

Knowing printing page number at runtime

4 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 04 Sep 2009, 10:56 AM
Hello,
I've got one question about a future use of telerik controls...
Please consider a situation for sending report as a stream and compile an xml that will be used by a third party to print the report and then send by traditional mail... I need to know if it's possible to know the exact printing number page (sometimes on the monitor I see one page but it prints 2, depending on the data)... is there a way of using it that way?

Another question, can I call the Reporting DLL to generate the pdf without seeing it on the browser / window?

Thanks in advance
Paolo

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 07 Sep 2009, 08:25 AM
Hi Paolo,

You do not need a 3rd party software in order to save/export/print a report. The differences between HTML rendering (non page oriented format)and Image rendering (page oriented format) are explained in the latter articles and the chances are that with simple layout or playing around more with complex ones, you would get the same look in both formats. However in reality, the paging and section processing is always different, so if you have a 2 pages report in html, when printed it might end up with lots more pages (due to the non page oriented fact). So basically in order to "know" the exact number of pages prior to printing to page oriented format, you should use such format when previewing i.e. windows forms viewer.
As for your second question, please review the following help article.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michele
Top achievements
Rank 2
answered on 07 Sep 2009, 08:48 AM
Hello Steve,
thanks for your reply... with 3┬░party I mean third party partner (I've forgot to specify it...,excuse me), I'll take a look at the articles you've posted to me, thanks a lot
Paolo
0
Michele
Top achievements
Rank 2
answered on 07 Sep 2009, 01:09 PM
Hello,
I've gained some more information about what we need to implement... we need to create a pdf that contains detail about our customer, it has a common header/footer on each page and the detail part changes.... since I need to add information to an xml during the construction.... my question is : "can I have control during the creation of the report?"
Consider this scenario, I've got 1000costomer, each one has a report on 2/3 pages (or more), I need to write into the XML the information "at page 1 I'm at the begin ofcustomer "paolo"" when I'm in the header section of customer1, when I'm in the footer section of "paolo" I need to write "at page 3 I'm at the end of ...." and so on...

Are the report section processed from top to bottom? so I can consider the event ItemDataBound of header happen before ItemDataBound of Footer (I think no since event are not sequential)

Thanks in advance
Paolo
0
Steve
Telerik team
answered on 08 Sep 2009, 03:55 PM
Hello Paolo,

As explained in previous post and in one of your other threads, the data processing and the paging are two separate processes i.e. you cannot know what data would be rendered on what page until the report is actually rendered. Furthermore, each rendering extension has a different paging mechanism which makes this task even more complicated. The short answer is no - you cannot achieve such scenario.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Steve
Telerik team
Michele
Top achievements
Rank 2
Share this question
or