If i call the “OpenPrint” instead the “OpenPrintDialog” method on Linux, Xojo call the window of the Printer.
How can I fix this problem?
I must print a file without opening the dialog.
I’m on Linux Mint 17.
Thanks to all.
If i call the “OpenPrint” instead the “OpenPrintDialog” method on Linux, Xojo call the window of the Printer.
How can I fix this problem?
I must print a file without opening the dialog.
I’m on Linux Mint 17.
Thanks to all.
[quote=119724:@Stefano Basile]If i call the “OpenPrint” instead the “OpenPrintDialog” method on Linux, Xojo call the window of the Printer.
[/quote]
You mean OpenPrinter()
and OpenPrinterDialog()
, right ?
Yes, if you use OpenPrinter() opens the printer as in OpenPrinterDialog() !
Xojo version? Can you make a simple demo, proofing the problem, to share and people try to figure out?
I just tried. It appears Linux Mint does indeed require the user to select the printer each time one needs to print.
I have set a default printer, but still OpenPrinter triggers the dialog.
The only way I see to print silently is to prepare a graphic file, and print it through a shell to lpr, which I verified to work when a default printer has been selected :
lpr shuttlelaunch.jpg
In terms of code, it is not quite different from Xojo regular printing ; only a Picture.Graphics is used instead of the printer g object.