New topic: Landscape Printing with Styled Text Printer
<http://forums.realsoftware.com/viewtopic.php?t=30486> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message DHKaplan Post subject: Landscape Printing with Styled Text PrinterPosted: Wed Oct 14, 2009 8:12 pm Joined: Thu Sep 24, 2009 11:28 am Posts: 8 I've been trying to get a set of styled text to print landscape and must be missing something elemental: It always appears portrait. Any suggestions greatly appreciated! Running latest Snow Leopard... Thanks, David Using 2009r4 Code: Sub PrintInfo() Dim stp as styledTextPrinter Dim g as graphics Dim PageSetup as PrinterSetup PageSetup = New PrinterSetup PageSetup.Landscape = True g=openPrinterDialog() // Break Here shows Landscape IS = True if g <> Nil then stp=textAreaLabel.StyledTextPrinter(g,72*7.5) //textAreaLabel is a textArea stp.drawBlock 0,0,72*9 // Top left x, y coordinates on page, and block height end if End Sub Top Phil M Post subject: Re: Landscape Printing with Styled Text PrinterPosted: Wed Oct 14, 2009 8:45 pm Joined: Fri Sep 30, 2005 12:18 pm Posts: 106 Landscape should mean that your "g" is wider than it is tall. Other than that minor detail, drawing to landscape is the same as drawing to regular portrait orientation. If ( g.Width < g.Height ) Then MsgBox "hey, now... this should be landscape!" Top timhare Post subject: Re: Landscape Printing with Styled Text PrinterPosted: Wed Oct 14, 2009 9:09 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 6565 Location: Portland, OR USA You cannot set the properties of a PrinterSetup directly. The user has to set them in the PageSetupDialog. You don't have programatic control over most properties of the printer. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
