Simulate header report with oprn:Box

Simulate header report with oprn:Box

Postby Silvio.Falconi » Wed May 12, 2021 8:33 pm

I have a simple list created with oPrn

Image

I wanted to replace the column header with the new Box function of class printer
But I not Understand How run it
Code: Select all  Expand view
 For nRow= 1 to 8
             nCol         :=  1.00
             nHei         :=  nRow+0.80
             nWid         :=  5.50
             nBorderColor :=  CLR_BLACK
             nTypeBorder  :=  1
             nBackColor   :=  CLR_HGRAY
             cText        := "TEST"
             oFnt         := oFn3
             nColorFont   := CLR_BLACK
             cAlign       :=  "L"

             Box(oprn,nRow,nCol,nHei,nWid,nBorderColor, nTypeBorder, nBackColor,cText, oFnt, nColorFont, cAlign)

             nCol         += nWid
             nWid         += nCol
              next

 Function Box(oprn,nRow,nCol,nHei,nWid,nBorderColor, nTypeBorder, nBackColor,cText, oFnt, nColorFont, cAlign)

           oPrn:Box(nRow,nCol,nHei,nWid,  { nBorderColor, nTypeBorder }, nBackColor, ;
                    { cText, oFnt, nColorFont, cAlign }, ;
                      "CM" )
        RETURN NIL

 


the boxes are created but I did not understand how to do them one after the other

Image



I would like to create something more sophisticated with the new Box function of printer, any solution, Someone can help me please ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Simulate header report with oprn:Box

Postby Silvio.Falconi » Wed May 12, 2021 10:22 pm

I was able to take this test this evening

Image

but I still have to work on it, maybe creating something simpler
but if you have any suggestions you are welcome
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Simulate header report with oprn:Box

Postby Otto » Thu May 13, 2021 12:15 pm

Hello Silvio,
I don't understand why you don't use EasyReport.
Forget the problems with the designer. As a programmer, you can deal with the designer's "small problems," or you can find a workaround for yourself.

But as you write yourself in a blog post:
"The Easy Report print engine seems to work fine."
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=39498&hilit=easyreport&start=30&sid=b11390ee6a7c074ab61122ac1cfc2f97#p235838

Take another look at the blog post:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=39498&p=235780&hilit=easyreport&sid=c5d43173db7387734b81417b07dab602&sid=b11390ee6a7c074ab61122ac1cfc2f97#p235780

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6312
Joined: Fri Oct 07, 2005 7:07 pm

Re: Simulate header report with oprn:Box

Postby Silvio.Falconi » Thu May 13, 2021 12:53 pm

Otto wrote:Hello Silvio,
I don't understand why you don't use EasyReport.
Forget the problems with the designer. As a programmer, you can deal with the designer's "small problems," or you can find a workaround for yourself.

But as you write yourself in a blog post:
"The Easy Report print engine seems to work fine."
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=39498&hilit=easyreport&start=30&sid=b11390ee6a7c074ab61122ac1cfc2f97&sid=a779510375cd549614d0e81a65876662#p235838

Take another look at the blog post:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=39498&p=235780&hilit=easyreport&sid=b11390ee6a7c074ab61122ac1cfc2f97&sid=a779510375cd549614d0e81a65876662#p235780

Best regards,
Otto

I not use ER because not run as I explain you many and many times and I wish not lose time to pkay with ER
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Simulate header report with oprn:Box

Postby karinha » Thu May 13, 2021 12:56 pm

Example complete for tests? Please? Thanks. Gracias. Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Simulate header report with oprn:Box

Postby Otto » Thu May 13, 2021 4:14 pm

Hello Silvio,
But this report you can make easily with ER in no time.
And if nobody helps and starts using it, ER will remain as it is.
Best regards,
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6312
Joined: Fri Oct 07, 2005 7:07 pm

Re: Simulate header report with oprn:Box

Postby Silvio.Falconi » Fri May 14, 2021 7:46 am

Otto wrote:Hello Silvio,
But this report you can make easily with ER in no time.
And if nobody helps and starts using it, ER will remain as it is.
Best regards,
Otto


forget this printout that I am doing, ER does not work and I have already explained to you several times why
Some time ago someone sent me the c5Report sources.
I said you had to use the c5Report class which works "super fine" but no one listened to me.
In the c5report class there was only the class to do the sections (i.e. the header, the body and the footer of an invoice),
I started to do some tests by inserting the class of the sections but then I had to leave because no one helped me

Image

In the black spaces I had to insert the class c5Report

the class c5Report it works on its own ie you can enter the command

oReport := TC5Report():New( 35,31, 550, 784, oClient,0,rgb(173,197,229), { 20, 20, 297+20, 210+20 } )
on a oClient ( odlg,oPanel,...)

and that class works with all its graphics subclasses ( line, box, ...) and it save to ini or another format file

ER only uses one function to create everything and then uses Tcontrol's dots system that leaks all over the place,

because the dots position is not in the right position when you move an object the cursor (the hand) is not on the object but it is moved somewhere else not allowing you to draw "as Christ commands"

someone had also rewritten the class for the ruler which now works very well and not the bullshit of ER that when you move the mouse you do not understand in which position the cursor is

no one is interested in the project

Indeed there was someone else who wanted to modify ER by not making what changes but now two months have passed and I have not seen anything yet

For more than twenty years I have been discussing with you why fivewin still does not have a powerful designer that works well to rely on,
with which a user can make a model in a very short time without wasting time
and with the risk of losing the I work because ER often crashes and you dear Otto lose what you were doing
instead C5report automatically saves every n seconds and backs up the model you are drawing
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Simulate header report with oprn:Box

Postby Silvio.Falconi » Fri May 14, 2021 8:01 am

..
Last edited by Silvio.Falconi on Mon Mar 20, 2023 11:15 am, edited 3 times in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Simulate header report with oprn:Box

Postby Otto » Wed May 19, 2021 10:21 pm

Hello Silvio,
Look how nice Easy-Peasy Report prints the table header.

Best regards,
Otto
Code: Select all  Expand view
    th {
          font-size: 10px;
          border: 1px solid #555555;
          text-align: left;
          padding: 8px;
          color: #F5F4F4;
          background-color: #555555;
        }   


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6312
Joined: Fri Oct 07, 2005 7:07 pm

Re: Simulate header report with oprn:Box

Postby cnavarro » Wed May 19, 2021 10:51 pm

Dear Otto
It looks great
Very good
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 24 guests