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


|