retrieve the choosen printer

Hello

In my application (C#) I call the Print method passing true to the
ShowPrintOptions.
After that I wish to retrieve the name of the printer chosen by the user
in order to save it in the report using the LlSetPrinterInPrinterFile
function so the next time each report will have the last used printer
already pre-selected,
Of course I want to do it programmatically

any ideas?

thanks, regards

Stefano

LlPrintGetPrinterInfo().

But I doubt a bit that it makes sense to do that yourself - if the
user chooses to ‘make the changes permanent’ in the dialog, LL does
already save the new settings, otherwise you will get the printer
name, but not the printer settings that the user has chosen, and the
user will wonder about the lost settings.

Paulchen

“Stefano Piletti” <spiletti@gcs-softwa…> wrote in message
news:46336829200818212@combit.net…

Hello

In my application (C#) I call the Print method passing true to the
ShowPrintOptions.
After that I wish to retrieve the name of the printer chosen by the
user
in order to save it in the report using the
LlSetPrinterInPrinterFile
function so the next time each report will have the last used
printer
already pre-selected,
Of course I want to do it programmatically

any ideas?

thanks, regards

Stefano

thanks for the answer,
I’m wondering if there is a way to force the box “Save options
permanently” to be always on by default

Stefano

Paul Schmidt ha scritto:

LlPrintGetPrinterInfo().

But I doubt a bit that it makes sense to do that yourself - if the
user chooses to ‘make the changes permanent’ in the dialog, LL does
already save the new settings, otherwise you will get the printer
name, but not the printer settings that the user has chosen, and the
user will wonder about the lost settings.

Paulchen

“Stefano Piletti” <spiletti@gcs-softwa…> wrote in message
news:46336829200818212@combit.net…

Hello

In my application (C#) I call the Print method passing true to the
ShowPrintOptions.
After that I wish to retrieve the name of the printer chosen by the
user
in order to save it in the report using the
LlSetPrinterInPrinterFile
function so the next time each report will have the last used
printer
already pre-selected,
Of course I want to do it programmatically

any ideas?

thanks, regards

Stefano

You can always check it yourself (create a thread that watches for
that dialog to come up, …, and then check the checkbox if needed).
Not very nice, but that does the job.

Paulchen

“Stefano Piletti” <spiletti@gcs-softwa…> wrote in message
news:4316912008123051@combit.net…

thanks for the answer,
I’m wondering if there is a way to force the box “Save options
permanently” to be always on by default

Stefano

Paul Schmidt ha scritto:

LlPrintGetPrinterInfo().

But I doubt a bit that it makes sense to do that yourself - if the
user chooses to ‘make the changes permanent’ in the dialog, LL does
already save the new settings, otherwise you will get the printer
name, but not the printer settings that the user has chosen, and
the
user will wonder about the lost settings.

Paulchen

“Stefano Piletti” <spiletti@gcs-softwa…> wrote in message
news:46336829200818212@combit.net…

Hello

In my application (C#) I call the Print method passing true to the
ShowPrintOptions.
After that I wish to retrieve the name of the printer chosen by
the
user
in order to save it in the report using the
LlSetPrinterInPrinterFile
function so the next time each report will have the last used
printer
already pre-selected,
Of course I want to do it programmatically

any ideas?

thanks, regards

Stefano