PDF paging and RDLC paiging not match
I have designed one rdlc file and deployed it on server. when i run the report suppose there are 5 pages but when i export report to pdf the exported pdf shows the data on 7-8 pages means the paiging in the exported pdf and executed report UI on browser
is not matching.
How to make the paiging scheme same at both the end. So that i will find the records on the same page in pdf as like on the UI of executed report.
Waiting for the responce..
Thanks
Sameer KeskarSameer Keskar
December 16th, 2010 10:41am
Do anyone knows the solution for above issue .. please let me know..
ThanksSameer Keskar
Free Windows Admin Tool Kit Click here and download it now
December 20th, 2010 1:54am
Hi Sameer Keskar,
The different page number is caused that different pagination rules are used. When display the report in ReportViewer, Logical pagination is used and it is controlled by the
InteractiveSize properties. When export report to PDF, Physical pagination is used and it is controlled by the
PageSize properties
However, if just specify the same size to
PageSize and InteractiveSize, we will get more pages in PDF because the
Margin properties of Report are only applied in the physical pagination.
For example, if the
InteractiveSize and the PageSize are both set to 8.5in x 11in and the
Margins are 1in, then the actual size of printing area in physical page is 6.5(8.5-1-1)in x 9(11-1-1)in. So, it leads to more pages are generated when render in PDF.
In order to make the page numbers matches, we need to ensure that the actual size of printing area and the interactive size are the same. Please refer to the equalities below:
•
Width(InteractiveSize) + Margin(Left) + Margin(Right) = Width(PageSize)
•
Height(InteractiveSize) + Margin(Top) + Margin(Bottom) = Height(PageSize)
Thanks,
Tony ChainTony Chain [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
December 20th, 2010 2:22am
Hi Sameer Keskar,
The different page number is caused that different pagination rules are used. When display the report in ReportViewer, Logical pagination is used and it is controlled by the
InteractiveSize properties. When export report to PDF, Physical pagination is used and it is controlled by the
PageSize properties
However, if just specify the same size to
PageSize and InteractiveSize, we will get more pages in PDF because the
Margin properties of Report are only applied in the physical pagination.
For example, if the
InteractiveSize and the PageSize are both set to 8.5in x 11in and the
Margins are 1in, then the actual size of printing area in physical page is 6.5(8.5-1-1)in x 9(11-1-1)in. So, it leads to more pages are generated when render in PDF.
In order to make the page numbers matches, we need to ensure that the actual size of printing area and the interactive size are the same. Please refer to the equalities below:
•
Width(InteractiveSize) + Margin(Left) + Margin(Right) = Width(PageSize)
•
Height(InteractiveSize) + Margin(Top) + Margin(Bottom) = Height(PageSize)
Thanks,
Tony ChainTony Chain [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Free Windows Admin Tool Kit Click here and download it now
December 20th, 2010 2:22am
Thanks Tony... I will try this solution.Sameer Keskar
December 20th, 2010 3:53am
Thanks Tony... I will try this solution.Sameer Keskar
Free Windows Admin Tool Kit Click here and download it now
December 20th, 2010 3:53am
Hi Tony,
I tried the above mentioned code but its not working.
Now also it is showing the same result as preveous.
I am having the Page size as (8.5 X 11) Margins (0.5,0.5,0.5,0.5)
so i made the interactive size as (7.5 X 10)
7.5+0.5+0.5 = 8.5 AND
10+0.5+0.5 = 11.
Is there any other solution to this problem?Sameer Keskar
December 21st, 2010 1:35am
Hi Tony,
I tried the above mentioned code but its not working.
Now also it is showing the same result as preveous.
I am having the Page size as (8.5 X 11) Margins (0.5,0.5,0.5,0.5)
so i made the interactive size as (7.5 X 10)
7.5+0.5+0.5 = 8.5 AND
10+0.5+0.5 = 11.
Is there any other solution to this problem?Sameer Keskar
Free Windows Admin Tool Kit Click here and download it now
December 21st, 2010 1:35am
Hi Tony.
I am working on the client reports i.e (rdlc files).
is there any other way we can solve this problem.....
Does any one knows about this issue please provide your comment....
Waiting for reply....
ThanksSameer Keskar
January 17th, 2011 1:08am