<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi list,</p>
<p>we have some trouble with the print dialog showing a completely
made-up list of page sizes (of course missing the important ones
to our users), identical for all our printers, when running QGIS
in a Citrix environment. The same printers work fine and the page
sizes are listed correctly when running QGIS locally on the same
client.</p>
<p>This is super weird... I'd expect the list of page sizes to be a
matter of the printer driver but apparently Qt might play into
this.</p>
<p>Is this issue known to others? Or there others running QGIS in a
Citrix environment without any issues regarding this? Does QGIS
explicitely do anything to alter the print dialogs? Thanks!</p>
<p>We used the following piece of Python code to easily get a list
of the printers and their page sizes:<br>
</p>
<blockquote>from qgis.PyQt.QtPrintSupport import * <br>
for printer_name in sorted(QPrinterInfo.availablePrinterNames()):<br>
print(printer_name)<br>
printer_info = QPrinterInfo.printerInfo(printer_name)<br>
page_sizes = sorted([ps.name() for ps in
printer_info.supportedPageSizes()])<br>
print(page_sizes)<br>
print("="*42 </blockquote>
<p>Cheers, Hannes<br>
</p>
<pre class="moz-signature" cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
---------------------------------------------
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
<a class="moz-txt-link-freetext" href="https://wheregroup.com/blog/">https://wheregroup.com/blog/</a>
---------------------------------------------
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a class="moz-txt-link-abbreviated" href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
</pre>
</body>
</html>