<p dir="ltr"><br>
On 02/10/2014 2:55 am, "Andrea Amparore" <<a href="mailto:andrea.amparore@gmail.com">andrea.amparore@gmail.com</a>> wrote:<br>
><br>
> Thanks Andreas!<br>
><br>
> Actually I need to do it with a script, because the serial printing is a part of a much more complex script.<br>
><br>
> It works on QGIS 2.2, but on QGIS 2.4 it drives me crazy…</p>
<p dir="ltr">Two things:<br>
- QgsMapRenderer is deprecated in 2.4 and above. You should update your code to use the new replacement QgsMapSettings object.</p>
<p dir="ltr">- Why don't you try saving the XML templates from your script to qpt files and then try loading them manually into QGIS? That might give you a better idea where your script is breaking.</p>
<p dir="ltr">Nyall</p>