New topic: Problem with OpenPrinterDialog
<http://forums.realsoftware.com/viewtopic.php?t=38001> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message dennisl Post subject: Problem with OpenPrinterDialogPosted: Tue Mar 08, 2011 5:01 pm Joined: Tue Aug 03, 2010 12:38 pm Posts: 26 Hi - In this print method I call OpenPrinterDialog (OS X). If I print, all is well, but if I cancel, I repeatedly get a Nil for return value (g) until I close the application down. Any ideas! Dim ps As New PrinterSetup Dim rpt As Report rpt = New IssuesList ps.MaxHorizontalResolution=300 ps.MaxVerticalResolution=300 ps.Landscape = False If ps.PageSetupDialog Then dim g as graphics g = OpenPrinterDialog(ps, nil) If rpt.Run( rs, ps ) Then rpt.Document.Print(g) End If End if 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]
