FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Nages: oprn:Box
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

To Nages: oprn:Box

Posted: Wed Oct 28, 2020 07:25 AM
Dear Nages,
I thought you had solved it but I saw that there are problems as the writing is not where I would like it to be. the Boxes are created well but each writing both the small one above the Boxes and the one sent with the PRINT TO command are in the wrong position.
Before I did not notice the error because I was using the virtual preview at home since I do not have the printer at home while this morning at school I realized that something was wrong and the computer is equipped with an HP printer (jet Ink) how could I solve the problem?


I did this at home with the virtual preview ie without the printer



I created this one this morning at work



sample

Code (fw): Select all Collapse
 nRow:= 5.5
            nCol:= 1
            nHei:= nRow+0.8
            nWid:= 5.5

         oPrn:Box(nRow,nCol,nHei,nWid,  { CLR_BLACK, nMoltoFine }, CLR_HGRAY, ;
                    { " Tipo documento", oFont, CLR_WHITE, "TL" }, ;
                      "CM" )

            nCol:= 5.5// nWid
            nHei:= nRow+0.8
            nWid=  nCol+2.5

        oPrn:Box(nRow,nCol,nHei,nWid,  { CLR_BLACK, nMoltoFine }, CLR_HGRAY, ;
                    { " Numero documento", oFont, CLR_WHITE, "TL" }, ;
                      "CM" )

.....


 nRow:= 3.98

           @ nRow,1 PRINT TO oPrn TEXT "Descrizione documento" SIZE 6, 4 CM FONT oFont2 ;
         COLOR CLR_BLACK  ALIGN "L"

          @ nRow,5.8 PRINT TO oPrn TEXT "Numero" SIZE 6, 4 CM FONT oFont2 ;
         COLOR CLR_BLACK  ALIGN "L"

            @ nRow,8.8 PRINT TO oPrn TEXT "Data" SIZE 6, 4 CM FONT oFont2 ;
         COLOR CLR_BLACK  ALIGN "L"
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion