Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to know how to set the paper size to Tabloid in Microsoft Report Viewer using C# .net
Can anybody help me.

ThankYou
Posted

1 solution

Hi,

Open your rdlc file in Visual Studio, once loaded in the report designer, goto the menu Report, Reports Properties, and set it to what ever you want..

Another way to do it is to open the rdlc file in notepad and change the page layout settings manually. rdlc files are xml and it is very easy to find the correct nodes.

for example:

XML
<Page>
  <PageHeight>29.7cm</PageHeight>
  <PageWidth>21cm</PageWidth>
  <LeftMargin>2cm</LeftMargin>
  <RightMargin>2cm</RightMargin>
  <TopMargin>2cm</TopMargin>
  <BottomMargin>2cm</BottomMargin>
  <ColumnSpacing>0.13cm</ColumnSpacing>
  <Style />
</Page>


Is that answering your question?

Valery.
 
Share this answer
 
Comments
ParvathySunu 31-Dec-10 6:01am    
yes,Its working..
Cheers,
ParvathySunu
thatraja 1-Jan-11 9:15am    
[Comment from OP/moved from answer]
Finally i got the correct answer in the following steps

Take the report properties
go to Layout Tab
And Set the PageWidth and Height to 11in and 17in

Cheers,
ParvathySunu

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900