Hi Wilfried, oPrinter:LoadScript(cScript+".out") The internal HWGUI print preview apears, but all pages are not in landscape. That's exactly the problem I have. The first page is in portrait, which is not ok, but the others are in landscape as desired. But I say that printing just when creating the script, all the pages are in landscape. The problem occurs only when printing (or creating a pdf) using the out file. For the pdf creation, I think it's a problem Windows. Under Linux, no problem. A+
Hi Wilfried, oPrinter:LoadScript(cScript+".out") The internal HWGUI print preview apears, but all pages are not in landscape. That's exactly the problem I have. The first page is in portrait, which is not ok, but the others are in landscape as desired. But I say that printing just when creating the script, all the pages are in landscape. For the pdf creation, I think it's a problem Windows. Under Linux, no problem. A+
Hi Wilfried, alpha.out has been created using hwgui, so I don't understand why you are not able to use it. For me, there is no problem, except the problem with script landscape, where the first page is in portrait. The problem is not a pdf problem, but an hwgui problem, as it occurs when printing in a pdf, or on the printer. Have you tried under linux ? Why are you trying to use WINPRN class ? INIT PRINTER oPrinter" Does this use WINPRN Class ? I think, the information of "alpha.out" is processed...
Nice ... you can close Thanks A+
Hi Wilfried, I don't understand your workaround. It doesn't change anything. I had a look to gtkmain.prg, and I saw you have added a parameter (nwline), but I don't understand how it works. FUNCTION hwg_WChoice( arr, cTitle, nLeft, nTop, oFont, clrT, clrB, clrTSel, clrBSel, cOk, cCancel,nwline ) ... IF nwline == NIL ; nwline := 21 ; ENDIF && Ticket 90 ... * New formula, because of bug in GTK (Ticket 90) height := ( nwline + 5 ) * aLen + 4 + addY As nwline seems to be an integer, I tried to set it...
Hi Wilfried, I don't understand your workaround. It doesn't change anything. I had a look to gtkmain.prg, and I saw you have added a parameter (nwline), but I don't understand how it works. FUNCTION hwg_WChoice( arr, cTitle, nLeft, nTop, oFont, clrT, clrB, clrTSel, clrBSel, cOk, cCancel,nwline ) ... IF nwline == NIL ; nwline := 21 ; ENDIF && Ticket 90 As nwline seems to be an interge, I tried to set it as an interge, but it crashed : Daté du 24/08/25 21:02:43 ---------------------------------------------...
Same problem ... If I change the size it's ok See hardcopies A+
Hi, Wilfried, I try your ticket, but it doesn't open the printer. If I comment the line : oPrinter:lpreview := .T., it opens the printer, and I can print on the laser, or print in a pdf. But, obviously, the bug concerning the first page in portrait mode instead of landscape is always here. There is a long time I haven't used Windows, and I don't know if it's possible, as under Linux, to print in a pdf. But the bug is always present when printing on a real printer, and I suppose and hope that with...