Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Objective-C and Swift
  4. NSPrintOperation not print properly Landscape print

NSPrintOperation not print properly Landscape print

Scheduled Pinned Locked Moved Objective-C and Swift
help
2 Posts 2 Posters 26 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    HI all i am using NSPrintOperation with NSView for printing. portrait pages are print well, but Landscape printing not done properly please help me for this.

    NSPrintOperation* printOperation = [NSPrintOperation printOperationWithView:my_print_view printInfo:printInfo];

        \[\[printOperation printInfo\] setPaperSize:printInfo.paperSize\];
        
        \[\[printOperation printInfo\] setOrientation:NSPaperOrientationLandscape\];
        
        
        \[printOperation setCanSpawnSeparateThread:YES\];
        \[printOperation setShowsPrintPanel:NO\];
               
        \[printOperation runOperationModalForWindow:window delegate:window didRunSelector:nil contextInfo:nil\]
    

    thanks in advance.

    V 1 Reply Last reply
    0
    • L Le rner

      HI all i am using NSPrintOperation with NSView for printing. portrait pages are print well, but Landscape printing not done properly please help me for this.

      NSPrintOperation* printOperation = [NSPrintOperation printOperationWithView:my_print_view printInfo:printInfo];

          \[\[printOperation printInfo\] setPaperSize:printInfo.paperSize\];
          
          \[\[printOperation printInfo\] setOrientation:NSPaperOrientationLandscape\];
          
          
          \[printOperation setCanSpawnSeparateThread:YES\];
          \[printOperation setShowsPrintPanel:NO\];
                 
          \[printOperation runOperationModalForWindow:window delegate:window didRunSelector:nil contextInfo:nil\]
      

      thanks in advance.

      V Offline
      V Offline
      Victor Lucca
      wrote on last edited by
      #2

      Click or tap in the document. Go to Layout > Orientation, and then select Landscape. Go to File > Print. Under Settings, make sure the orientation box says Landscape Orientation. Select Print.Ozempic Kopen Belgie | Ozempic kopen Online | Ozempic Kopen[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups