Select printer before printing image with TgdViewer
Select printer before printing image with TgdViewer
Hi,
I'm not sure if this is a waisted a question...
I'm trying to print an image, but before i do that, i want to select a printer different to my default one by using a TPrintDialog. Because the TgdViewer uses my default printer.
Is it possible to do this with TgdViewer and if it isnt, is there a work around?
Thanking you in advance!
Jo
I'm not sure if this is a waisted a question...
I'm trying to print an image, but before i do that, i want to select a printer different to my default one by using a TPrintDialog. Because the TgdViewer uses my default printer.
Is it possible to do this with TgdViewer and if it isnt, is there a work around?
Thanking you in advance!
Jo
Hi,
First, you can enumerate all your printers like that:
Second, you can select one of the enumerated printer like that :
This line set as active printer the second listed printer into the For .. next statement.
Best regards,
Loïc Carrère
First, you can enumerate all your printers like that:
Code: Select all
For nCpt = 1 to oGdPicture.PrintGetPrintersCount()
MsgBox oGdPicture.PrintGetPrinterName(nCpt)
Next nCpt
Second, you can select one of the enumerated printer like that :
Code: Select all
oGdPicture.PrintSetActivePrinter(2)
Best regards,
Loïc Carrère
Thanks for the answer!
Its exactly what i needed!
Also, thanks for a great product!
Regards,
Johann
Also, thanks for a great product!
Regards,
Johann
Who is online
Users browsing this forum: No registered users and 1 guest