New topic: Set the printer to mac Pdf by defaults
<http://forums.realsoftware.com/viewtopic.php?t=34253> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Queenheaven Post subject: Set the printer to mac Pdf by defaultsPosted: Sat Jun 12, 2010 12:20 pm Joined: Tue Apr 24, 2007 4:13 am Posts: 324 Location: Italy Hello all I need to set the mac pdf printer as default printer by code without exposing any printpref dialog. Is there any way to achieve that? Thanks Rudy _________________ Fairytales of yesterday will grow but never die.... http://www.queenheaven.it Top serd83 Post subject: Re: Set the printer to mac Pdf by defaultsPosted: Sat Jun 12, 2010 12:56 pm Joined: Thu Feb 22, 2007 7:08 pm Posts: 1137 Instead OpenPrinterDialog use OpenPrinter. Example from the LR: Code:Dim g As Graphics g = OpenPrinter() g.DrawString "Hello World", 100, 100 Top Queenheaven Post subject: Re: Set the printer to mac Pdf by defaultsPosted: Sat Jun 12, 2010 1:24 pm Joined: Tue Apr 24, 2007 4:13 am Posts: 324 Location: Italy Okay my print routine already uses similar code but I need to target the pdf printer directly: using this way it print with the predefined printer and I need to set the pdf printer R _________________ Fairytales of yesterday will grow but never die.... http://www.queenheaven.it 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]
