HighDots.NET Computer Hardware Forums  

SetPrinter

Peripheral Devices Peripheral Devices Discussions (comp.periphs)


Discuss SetPrinter in the Peripheral Devices forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
#2pencil
 
Posts: n/a

Default SetPrinter - 05-24-2005 , 10:55 AM






I wrote a GUI to change the settings of a printer, based on pre-defined
configurations that get loaded from an ini file.

The program works without a hitch on the 1st run. However, after I run
the program, the printer driver appears 'locked' until I reboot the
machine. After the reboot, start/settings/printers reflect the change
of the last attempt.

How can I force the OS to let go of the printer driver for further
editing without a reboot? Or, what is a common mistake that I may have
made, that keeps the driver locked based on the 1st call of
SetPrinter()?


Reply With Quote
  #2  
Old   
Brian Inglis
 
Posts: n/a

Default Re: SetPrinter - 06-06-2005 , 01:43 AM






On 24 May 2005 07:55:26 -0700 in comp.periphs, "#2pencil"
<number2pencil (AT) gmail (DOT) com> wrote:

Quote:
I wrote a GUI to change the settings of a printer, based on pre-defined
configurations that get loaded from an ini file.

The program works without a hitch on the 1st run. However, after I run
the program, the printer driver appears 'locked' until I reboot the
machine. After the reboot, start/settings/printers reflect the change
of the last attempt.

How can I force the OS to let go of the printer driver for further
editing without a reboot? Or, what is a common mistake that I may have
made, that keeps the driver locked based on the 1st call of
SetPrinter()?
You're better using printer preferences to setup the printer, then
regedit to dump the printer registry settings to a file, and finally
add a shortcut to the registry settings file in your startup folder.

--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada

Brian.Inglis (AT) CSi (DOT) com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.