How to force landscape orientation?

Hello!
I have a JSP page that generates a html page that is too wide to be printed in portrait orientation. How can I force that the page is oriented as a landscape, when it is printed?

I don't think it's possible. The only thing you can do from your code is call the print function "window.print()" in javascript. Perhaps display a message to the user advising them to select the landscape format themselves.
G

Similar Messages

  • Forcing Landscape orientation for TabBarController and NavigationController

    Hello,
    I'm writing an application that need to force LandscapeRight with a UITabBarController that contains a UINavigationController that contains UIViewController.
    I can force UIViewController to landscape, but when I add the UINavigationController, the emulator starts as Landscape, but returns to Portrait when I call [window addSubView:], and the viewOrientation field from window switch from 0 to Portrait.
    Is there anybody has worked with landscape orientation ? (it's really hard to make a landscape app, indeed).
    David

    The code below almost works. It does force landscape orientation. The problem I am having is that the navigation items in the navigation bar are not centering themselves until the device is physically rotated. Hope it helps.
    Ed
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    // get height of status bar before setting the status bar to landscape orientation
    CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];
    // set the status bar to landscape orientation
    [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
    // rotate
    UIScreen *screen = [UIScreen mainScreen];
    CGRect newBounds = CGRectMake(0, 0, screen.bounds.size.height, screen.bounds.size.width - statusBarFrame.size.height);
    self.navigationController.view.bounds = newBounds;
    self.navigationController.view.center = CGPointMake(newBounds.size.height / 2.0, newBounds.size.width / 2.0);
    self.navigationController.view.transform = CGAffineTransformConcat(self.navigationController.view.transform, CGAffineTransformMakeRotation(degreesToRadian(90)));
    self.navigationController.view.center = window.center;
    here is the function definition
    #define degreesToRadian(x) (M_PI * x / 180.0)

  • Force Landscape Orientation?

    Does anybody know of a way to force landscape orientation for a view controller in an iPhone application?
    I have defined a UI in Interface Builder that I want to always show in landscape mode.
    When the app first starts though, it is always in Portrait Mode.
    Once the orientation is changed to landscape it will never go back to Portrait since I have setup the shouldAutorotateToInterfaceOrientation method correctly, but I can't seem to figure out a way to start it out in landscape mode.

    Andrew, I'm having a very similar problem. Have you found a solution yet?
    I have an app that has two screens, one is displayed landscape, and the other is displayed portrait. The user can press a button to swap between them. When I switch between the views I call
    [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait];
    or
    [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
    to put the device into the correct orientation for whichever view I'm about to display.
    Problem is, if the user is on the landscape screen, rotates the phone to portrait, and then presses the button to switch to the screen that is in portrait, the new view gets put on in the wrong orientation (landscape). If the user then rotates the device to landscape and back to portrait, it fixes itself. It's like the phone ignored the call to [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait]; if the device is already being held in portrait orientation.
    I've been at this for a few days now, and I'm really stuck. Any help would be appreciated.

  • How to Force Landscape View with EAGLView

    I thought the crash lander app was a perfect template for me. Everything is working great except now I realize my game will really work better in landscape mode than portrait. I can't get it to work no matter what I try
    I've read through the many posts on the forum about this. I've tried transforming the layer 90 degrees (everything looks squished), I've tried plist values (UIInterfaceOrientation). I've tried setStatusBarOrientation in applicationFinishedLaunching. I can't get it to work right. There's always something wrong with the result. I'm not even trying on the simulator, I'm just trying to get it working right on the actual device.
    From my apps perspective, I just want my code to see a device that is 480 pixels wide and 320 pixels tall.
    I could just manually rotate all my images 90 degrees in photoshop, but if I go that wrote can I somehow swap the x and y coordinates on the iphone so i don't have to convert them on the fly manually?
    The crash lander code just has an app delegate and a special myEAGLView class that gets setup right from the app delegate. Is the only way I'm going to do this is to add a viewcontroller for the EAGLView? (EaglView is a UIView so I assume that is possible?)
    Any suggestions?

    If you're using OpenGL, then why not use
    glLoadIdentity();
    glRotatef(90.0f,0.0f,0.0f,1.0f);
    every frame?

  • How to read ibooks on landscape orientation one page at a time on iPhone 6 Plus

    How can I force iPhone 6 Plus to show me only one page at the time on landscape orientation on iBooks. Right now it show me one page at the time if it is in portrait orientation but as soon as I turn the phone to landscape orientation it splits and shows me two pages ie page 1 and page 2.

    I've looked everywhere I can think of to change the way that iBooks handles this and cannot find an option to change it. If you choose scrolling view then it will not show two columns but then you scroll to read rather than turning "pages."

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How to enable a fixed Landscape orientation ?

    Dear all,
    How can you design an Analysis Application for iPad so that is always displayed in Landscape orientation ?
    I want to disable the Portrait orientation for my Analysis Applicaiton.
    Many thanks
    Hans

    I found a possible CSS-only solution on Stack Overflow - was written for iPhone Portrait but I'd imagine the pixels could be adapted for iPad Landscape.
    Source: How do I lock the orientation to portrait mode in a iPhone Web Application? - Stack Overflow
    @media (max-height: 480px) and (min-width: 480px) and (max-width: 600px) {
      html{
      -webkit-transform: rotate(-90deg);
      -moz-transform: rotate(-90deg);
      -ms-transform: rotate(-90deg);
      -o-transform: rotate(-90deg);
      transform: rotate(-90deg);
      -webkit-transform-origin: left top;
      -moz-transform-origin: left top;
      -ms-transform-origin: left top;
      -o-transform-origin: left top;
      transform-origin: left top;
      width: 320px; /*this is the iPhone screen width.*/
      position: absolute;
      top: 100%;
      left: 0

  • Force a single landscape orientated page to follow the general portrait orientation of pages

    I have moved a single page PAGE X from DOCUMENT 2 into a DOCUMENT 1. The page page moved from DOC 2 is landscape orientated. The pages in DOC 1 are portrait orientated.
    How can I  rotage PAGE X to a portrait position aligning it to the other pages of DOC 1.
    ID 6.0.
    Thank you!

    There's a work around:
    1- Select all items on the page, then Rotate90 clockwise and make sure the Reference Point on center.
    2- With Page Tool select the page and change orientation to Portrait.

  • How to change to landscape orientation in Pages for iPhone4s?

    Does anyone know how to change to landscape orientation in Pages for iPhone 4s and iPad?

    The functionality on an iPhone is greatly diminished when having to work in potrait mode due to the screen size; it really becomes a bit useless.
    It seeems a no-brainer; I guess that's why I asked on the forum.
    Maybe someone else knows more.?
    I hope that you're not right but think you probably are.
    Thanks again for offering to help!

  • How do I print text document (spreadsheet) in 11 x 17 format with landscape orientation?

    Print preview shows only in portrait orientation when I get an image at all, then when I hit "print" icon, get instant message that says "out of memory".  Also cannot seem to get printer to recognize 11 x 17 size -- keeps saying that printer settings & paper size do not match.

    Don't want to come across as ungrateful, but I'm NOT impressed with how these postings are being handled.  Guess I should expect that with HP -- ever since their calculators came out with RPN, the culture of HP has been different from most others.
    To repeat myself, my printer is HP B8550 Photosmart, capable of wide format printing -- the reason I purchased this one after reading reviews by others  of all its features.  My OS is Windows XP Home Edition.  My problem is with trying to print out a spreadsheet format of a large genealogical database that I have created, using Windows Works.  When I open the file, create the desired printer settings, and perform the page set-up tasks, all I get when I hit "print preview" is an error message that says "out of memory", which prevents any further action.  When I clear that from the screen & try to see a print preview, I get a truncated image of the spreadsheet in PORTRAIT orientation & not the LANDSCAPE orientation that I have set the document printing for.
    While awaiting a useful response from yesterday's forum (& not getting one), I tried a different Word document while using the same 11 x 17 sheet size setting for the printer, & that document was processed without a hiccup.  I'm now more inclined to believe that there is something wrong with my Window Works software & NOT the printer software that just doesn't want to deal with 11 x 17 spreadsheets in queue or out on the stack (or heap -- wherever the machine stages such data for processing), but I just don't know.  Made a separate file using just one page of the database, thinking that maybe the 4.5 MB file size was the problem, but that had absolutely no effect on the situation -- it won't print even that small file as structured.  To display all the data, I need to use landscape orientation.  Puzzled why it won't show in that orientation even within print preview.
    ANY advice on how to get this project to work properly is appreciated -- it represents about 8 years' worth of work in creating it & I'm ready to make a hard copy to use while doing on-site work at various archives holding such records.

  • I have managed to lock the landscape orientation on my iphone 3 - any ideas as to how I unlock it please?

    I have managed to  lock the landscape orientation on my iphone 3 - any ideas as to how I unlock it please?

    Im not aware that you can lock your screen in landscape so I'm assuming you have locked it in portrait and want to allow it to ne seen landscape, therefore double click the Home button, swipe the icons to the right, you will see an icon with a circle-arrow. That is your screen orientation lock.
    Assuming again you have iOS5 have a look at the following for more help, page 21
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • CS4: How to set up landscape orientation doc with dual page setup vertical not horizontal

    I'm an InDesign newbie and am trying to set up document presets for a landscape-oriented document that will have binding at the top and bottom edges of the page, not the default left and right edges.  So when I open up my spread of pages 2 and 3 I want to see page 2 ABOVE page 3 not to the left of it.
    I can't see any way to do this. Am I missing something or is this just not possible in InDesign CS4 (v6.0.6)?

    The closest you can come out of the box is to set up a facing pages document using portrait orientation, then select the spreads in the Pages panel and Rotate Spread View 90 degrees Counter-Clockwise before you begin the layout.
    This will allow you to work "as if" your pages were landscape and bound on the long edges, but things like x and y coordinates will be swapped bcause you are really still working on rotated pages.

  • Recent netflix upgrade forces landscape mode. now unable to watch on a docking station

    it doesnt make sense for netflix to force landscape mode to view movies. The ipad is designed to be able to be viewed in both landscape and portrait and there is a plug at the bottom of the ipad to charge and allow it to dock in an upright position. PLease how can we tell netflix to change it back?> Netflix support tells me it is Apple who changed it but i cant talk to Apple unless i pay money .
    any APP developers listening?

    I'd love to see your copy of your conversation with Netflix, schwartz43o.
    I have been trying to talk to Netflix CS via Twitter about this issue since the April update. Every time I mention it, at first, they are all confused and ask me if I'm getting an error message. Then they come back and say, "Oh, yeah. We removed that feature. Thanks for the feedback; we'll pass it on." The absolute worst response was when I mentioned the Kindle Fire allows portrait viewing. "Some tablets have different capabilities, but we are constantly striving for a uniform experience." Um, hello. We HAD a uniform experience until you took it away.
    I don't understand what the "post play" feature has to do with screen orientation. Granted, I'm not a programmer, developer or any kind of computer whiz. But I would like to think that those two areas would be separate from each other.
    I'd honestly trade the two seconds it takes me to hit play on the next episode, for the ability to utilize my iPad's portrait orientation the way I want to.

  • Portrait/landscape orientation from MS Word to .pdf

    I just converted my first Word document to a .pdf with Adobe.com Air.  The Word doc was created in a portrait orientation, but the .pdf
    came out in a landscape orientation.  Can't figure out how to correct?

    The original was an MS Word document (.doc) created with page set up for portrait orientation.  It shows and prints
    in portrait orientation.  I converted to a .pdf on Adobe.com and the pdf file was in landscape.  When the pdf is viewed (previewed?)
    on Adobe.com, it appears in landscape.  It is a one page document and was never saved to any other format.  Since the original Word
    document is in the correct format, how would I alter the formating to re-upload and convert again?  I have attached both the .doc & .pdf files.

  • Cfreport landscape orientation?

    Running ColdFusion 8. We're using the cfreport tag to bring up reports designed in coldfusion report builder. They were designed in landscape orientation. We have cfreport's format set to flashpaper. when the report is brought up on screen it shows in portrait and prints in portrait. if the cfreport format is changed to PDF, it gets brought up landscape and prints in landscape.
    We want to be able to show reports in flashpaper, but have it in landscape orientation by default. Is this possible? Why does cfreport not have an orientation attribute like cfdocument has? Right now users will have to change the printing settings everytime to change it to landscape; this is quite a hassle. Why can't cfreports be set to landscape through code?
    or, if they can, how can I do this? Thanks...

    I suggest just creating another CFR with the other orientantion.  If you created the CFR in landscape, and say you took full advantage of the width with where you placed all your elements, how could you expect all elements to fit when the orientation changes?

Maybe you are looking for

  • Third Party Process Issue

    Hello Friends, Need Your Inputs for below issue" in third party process: SO is created with 2 line items, -->PR-->PO--> Vendor delivers only 1 item and MIRO is done for it, But During Creation of Customer invoice Both Line items are considered in the

  • Webutil_host.blocking( ) example needed  * SOLVED *

    Hello, I need to get the name of the UNIX application server from my forms 10g program. I'm calling pid := webutil_host.blocking('uname -n') but it fails with a return code of 2 no matter how I format the command ('ksh -c "uname -n"', etc). subsequen

  • How do I get an image from 32 bit to 8 without ruining it?

    I have an image someone sent me that I need to work on and it's in 32 bit.  I tried to put it at 8 and 16 but it changes drastically and I cannnot get it adjusted to look good. I also have no access to my Oneone software or even the contrast and brig

  • HT4623 Updated, now my iPhone has no sound

    So I have put the new update in my iPhone, now I cannot hear music or videos.. My text tones still work.

  • How many pages my HP Deskjet D5560 printed

    Hello, tell me please how can I determine how many pages my HP Deskjet D5560 printed in its lifetime? Thanks !