<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">Il giorno mer 19 dic 2018 alle ore 11:43 Rolf-Werner Eilert <<a href="mailto:rwe-sse@osnanet.de">rwe-sse@osnanet.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am 18.12.18 um 16:56 schrieb Rolf-Werner Eilert:<br>
> In one of my programs which ran flawlessly under Suse Leap (KDE and Qt), <br>
> I have a serious fault of printing functionality under my new Ubuntu Mate.<br>
> <br>
> Instead of printing Landscape, it prints Portrait, but landscape-wise on <br>
> the paper, i. e. upright. If I would print it, it would be ok, but the <br>
> positions on the sheet are wrong. It looks like being measured for A5 <br>
> instead of A4.<br>
> <br>
> This is Gambas 3.11.4. Have you changed anything in the printing part <br>
> which would influence measuring positions etc.? Something during the few <br>
> last versions; on the Suse system I had a bit older version.<br>
> <br>
> Or is there something wrong here?<br>
> <br>
> drucker = New Printer As "drucker"<br>
> <br>
> drucker.Orientation = Printer.Landscape<br>
> drucker.Paper = Printer.A4<br>
> <br>
> drucker.OutputFile = druckPlanDatei<br>
> <br>
> drucker.FullPage = True<br>
> <br>
> drucker.Print() ' -> drucker_Begin()<br>
> <br>
> Thank you for any input!<br>
> <br>
> Regards<br>
> Rolf<br>
> <br>
<br>
<br>
I have to answer myself as I have found a way to work around the wrong <br>
measurement. Sizes are ok now, but the print is still not turned by 90° <br>
for Landscape.<br>
<br>
The whole thing is somewhat strange as I use the same code in another <br>
program to compute the positions for printing.<br>
<br>
How do you calculate mm to printing pixels?<br>
<br>
Regards<br>
Rolf<br>
<br></blockquote><div><br></div><div>Sorry but now I have no time, it's something I had done years ago is in Italian, I hope can help you.<br></div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div></div>