New topic: 

Multiple Printers and Print Resolution

<http://forums.realsoftware.com/viewtopic.php?t=45994>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        DaveS          Post subject: Multiple Printers and Print 
ResolutionPosted: Tue Nov 20, 2012 9:48 am                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4274
Location: San Diego, CA                I have a routine that will get the 
available print resolutions for the DEFAULT printer (this is under OSX right 
now)

I have TWO printers....  one has 180,360 and 720  the other is 120,360 and 720

Problem is... I have to set the resolution in the PrinterSetup String.... 
BEFORE the OpenPrinterDialog
but in that Dialog the user can switch printers. and by then its too late, as I 
now have my graphic object

How can I set the printer resolution AFTER the printer selection is locked .. 
but BEFORE the graphic object is created???

This is what I am doing now.

printer_setup= New PrinterSetup
Get_Printer_Info
//printer_rez=Default_Printer_Rez:Default_Printer_Rez
Select Case force_orient
Case 0
  printer_setup.Landscape=Get_Landscape(current_table)
Case 1
  printer_setup.Landscape=False
Case 2
  printer_setup.Landscape=True
End Select
printer_setup.MaxHorizontalResolution=Printer_Rez.Left
printer_setup.maxVerticalResolution=Printer_Rez.Right
page_num=0
Return OpenPrinterDialog(printer_setup)


Get_Printer_Info returns a "pair" with the desired resolution.... but it is for 
the default printer selected BEFORE the OpenPrinter Dialog      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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]

Reply via email to