evtl hilft Euch dieser Link ein bißerl weiter:
http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_20506162.htmlincl. einer gezippten Bsp DB mit API Calls:
http://www.icejersey.com/dev/printerchange.zipDer Bursch hat es für WinNT/W2k geschafft, allerdings scheint es bei der Combo R6/Win98 Probleme zu geben, nämlich genau der Art wie Ihr sie schon entdeckt habt:
"Wow!! This is proving to be a real pain, the SendMessage call does change the default printer but notes doesn't recognise it. However if you change the default printer manually Notes does recognise the changes.
I am trying out some other things and I think I am getting close, this lot seems to work with windows NT/2000 but Win98 is not playing ball.
I just need to work out what windows98 does after the user changes the default printer manually to see if I can do the same. Soon as I find this out we should be sorted..
Sorry this is taking a while faithsg "
Das war am 28.03.
(Seine Erläuterungen zur DB:
Hi Faithsg,
I have put together a sample of a printer change system
I have had it working on my computer so you shouldn't have any problems using it.
You should be able to copy/paste bits of it into your database; the essential items you need to look at are as follows.
1) Script Library - this holds all the api calls and other goodies and is called "PrinterChange"
2) In the main form you need to look at the form globals, PostOpen event and QueryClose event
3) Lastly you need to see the code behind the two buttons, these buttons call the functions in the script library.
Click on the following link to download example
http://www.icejersey.com/dev/printerchange.zipHope this helps, Notes can be a pain to change printers, after looking myself for aaagggeeeessssss I managed to find out that setting the printer to default then back again is the only way to get the job done.
One last thing, you need to be on Notes 5.0.10 or later for this to work, if your on a lower version you have do an incremental upgrade by visiting the notes website, look out for MR (Maintanance release).
Good luck, Joe.)