Quantcast
Channel: Visual Studio Report Controls Forum
Viewing all articles
Browse latest Browse all 519

Programatically Get & Set the Page Margin, Paper Size, etc... from RDLC ReportViewer Pagesetup dialog

$
0
0

Dear Friends

I am facing a serious problem while Set & Get the Page Margin, Paper Size, Orientation etc to & from the RDLC - Report Viewer Page setup dialog.

I want to do this in Programatically.

Note :

1. Programatically I can able to get the default values of Page Margins from the Pagesetup.

2. Once I change the values in the  Pagesetup, I cannot able to retrieve the modified Pagesetup values, it fetches only the default values of the Pagesetup.

ex., 

Following code gets the default value

MarginTop = ReportViewer1.LocalReport.GetDefaultPageSettings.Margins.Top
MarginLeft = ReportViewer1.LocalReport.GetDefaultPageSettings.Margins.Left
MarginRight = ReportViewer1.LocalReport.GetDefaultPageSettings.Margins.Right
MarginBottom = ReportViewer1.LocalReport.GetDefaultPageSettings.Margins.Bottom

Kindly help me to Get & Set the Pagesetup values Dynamically.


Thanks

Thiraviam


Viewing all articles
Browse latest Browse all 519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>