Normal Topic Can Sesame tell me what is my default printer? (Read 442 times)
lksseven
Full Member
***
Offline



Posts: 416
Location: Southwest
Joined: Jan 26th, 2009
Can Sesame tell me what is my default printer?
Aug 7th, 2012 at 4:32pm
Print Post Print Post  
Tried searching for this info, but couldn't find anything, so ...

It would be helpful if my programming could ask the system what is the currently designated default printer, so that I could have Sesame alternateDefaultPrinter("PrinterB") for a print function and then revert automatically back to the previous printer-designated-as-the-AlternateDefaultPrinter ...  is that possible?  (running ver 2.5.3)
  

Larry
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Can Sesame tell me what is my default printer?
Reply #1 - Aug 7th, 2012 at 5:00pm
Print Post Print Post  
Hello Larry,

There is not an Sbasic command to return what alternate printer name is current set by AlternateDefaultPrinter. You can however keep track of his in programming by using ClientLocalValue() and @ClientLocalValue().

Just where ever you set the alternate printer also set a ClientLocalValue to the same name, and when you do RestoreDefaultPrinter() clear that ClientLocalValue as well.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
lksseven
Full Member
***
Offline



Posts: 416
Location: Southwest
Joined: Jan 26th, 2009
Re: Can Sesame tell me what is my default printer?
Reply #2 - Aug 8th, 2012 at 12:58am
Print Post Print Post  
Ray,

Thank you for the tip.  I've never delved into ClientLocalValue before.  It'll be an opportunity for growth!  Huh
  

Larry
Back to top
IP Logged