This is done via the selected printer, as not all printers can re-orientate a page. So I doubt you will be able to get a handle to the printer context to set this with your own code, you will either have to publish the report in the correct orientation or remind users to change it.
In that case, how do I set the orientation in the published report? I've tried setting the report/report properties/layout to width 11, height 8.5 but that didn't work. I haven't been able to find any property of reportviewer that references page setup. I did find one reference to setting the orientation in the 'RenderComplete' event, but I can't find any evidence that this event exists.
OK, I'm lost - where is the page layout/setup option? I created a new web page (in case I missed something), dropped a report viewer on it - I dont see any place that I can specify the layout. I then added a report file - I'm still not seeing any place to define orientation. Is this set in the report viewer or the report itself? I feel like I'm missing the elephant in the parlor here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.