It isn't very hard. Use CPrintDlg to allow the printer to be set. You
can then save the information delivered and store it wherever you
want. The answer suggested shows how to store it in the document, but
you can store it in the Registry, or just ignore it. If the CPrintDlg
structure is static, then the next time you want to print you
reference the same structure and you will get the desired default.
joe
Quote:
>I found the aritcle you cited, however I must change this printer from
>the app not the document.
>sometimes this will be changed by users and sometimes by the app.
>putting the info in the document will not work because the printer
>used will change on the fly...
>any other ideas?
>thanks
>charles
>>I suspect that you don't want to change the system default printer -
>>rather you want to change the current application default printer. If
>>that is correct, have a look at Knowledge Base article Q133025 "How to
>>Store MFC Printer Information in a Document", which I think will point
>>you in the right direction.
>>Dave