Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Re: XPRINT ATTA...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 232 of 276
Post > Topic >>

Re: XPRINT ATTACH CHOOSE

by Wolfgang Enzinger <spamsink-8514@[EMAIL PROTECTED] > Apr 11, 2007 at 02:43 PM

Hi Michael,

>For XPRINT ATTACH CHOOSE with a named printer as the default, I posted
code 
>to do this at 
>http://www.powerbasic.com/sup****t/forums/Forum7/HTML/002446.html

thanks a lot, I'll have a look at this. I *knew* someone must have had
that prob before, but all my googlin' didn't take me there ...

>Or, you could tem****arily set the system default printer to the desired 
>printer, use XPRINT ATTACH CHOOSE, then set the default back. You can use

>SetDefaultPrinter (Windows 2000+ ) to do so; see your WinAPI reference
for 
>details.

However, I'm pretty sure that changing the default printer requires
certain permissions on the system; some of my users obviously lack
these permissions, so I hopefully won't need that workaround.

>As far as making the dialog 'truly'  modal, I "believe"  the common
dialog 
>on which I based th above code is such. If not, you could simulate 
>'modality' by disabling your program's main window before calling either 
>XPRINT ATTACH CHOOSE or the code referenced above.

Yeah, that would be an option if everything else should fail.

Thanks again,
Wolfgang
 




 3 Posts in Topic:
XPRINT ATTACH CHOOSE
Wolfgang Enzinger <spa  2007-04-11 11:46:44 
Re: XPRINT ATTACH CHOOSE
"Michael Mattias&quo  2007-04-11 12:58:42 
Re: XPRINT ATTACH CHOOSE
Wolfgang Enzinger <spa  2007-04-11 14:43:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 1:28:23 CDT 2008.