Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportViewer page orientation

Status
Not open for further replies.

EDB2

MIS
Sep 11, 2002
36
US
Is there any way to programmatically set the page orientation when printing a ReportViewer report from a web page?
 
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.

--



woogoo
 
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.
 
I'm no expert, but isn't this done at the time you create your report, using the Page Layout / Setup.


woogoo
 
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.
 
Ok I need to confess that I've never used this control I was working on a crystal reports principal.

As you want to change the orientation of a page I assume you want a line of say XXXXX to be printed:
X
X
X
X
X

And as it's web based (text) I think you're stuck with having the user change the orientation manually, but I'll stand corrected if need be.


woogoo
 
Thanks for the effort anyway woogoo :) I'll keep searching around, although I'm starting to think you are right
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top