Setting Margins in ReportViewer

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span> 
Dear Readers,
I use Report Viewer to create a report with display records from a database.
I have a lot of data to display for each line, but the margin settings are limiting me.
If I go to the Page Setup tab in Report viewer(Run time), I can set the margins to 1 (left and right) , and it  displays my full line nicely.
How can I programatically set the margins to 1 during loading of the form?
 
Also interesting is that if I go into Page Setup, the margins are displayed as
9.8 (left and right).   If I go out of Page Setup, and back in to Page Setup, the
margins now are 3.9.    Every time I go in and out of Page setup, without changing anything,  the margins are automatically reduced, untill it is 0.    
If this correct behaviour?
Thanks
 

View the full article
 
Back
Top