Page 1 of 1

Simulate header report with oprn:Box

Posted: Wed May 12, 2021 8:33 pm
by Silvio.Falconi
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

 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 ?

Re: Simulate header report with oprn:Box

Posted: Wed May 12, 2021 10:22 pm
by Silvio.Falconi
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

Re: Simulate header report with oprn:Box

Posted: Thu May 13, 2021 12:15 pm
by Otto
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

Re: Simulate header report with oprn:Box

Posted: Thu May 13, 2021 12:53 pm
by Silvio.Falconi
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

Re: Simulate header report with oprn:Box

Posted: Thu May 13, 2021 12:56 pm
by karinha
Example complete for tests? Please? Thanks. Gracias. Regards, saludos.

Re: Simulate header report with oprn:Box

Posted: Thu May 13, 2021 4:14 pm
by Otto
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

Re: Simulate header report with oprn:Box

Posted: Fri May 14, 2021 7:46 am
by Silvio.Falconi
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

Re: Simulate header report with oprn:Box

Posted: Fri May 14, 2021 8:01 am
by Silvio.Falconi
..

Re: Simulate header report with oprn:Box

Posted: Wed May 19, 2021 10:21 pm
by Otto
Hello Silvio,
Look how nice Easy-Peasy Report prints the table header.

Best regards,
Otto

Code: Select all | Expand

    th {
          font-size: 10px;
          border: 1px solid #555555;
          text-align: left;
          padding: 8px;
          color: #F5F4F4;
          background-color: #555555;
        }   


Image

Re: Simulate header report with oprn:Box

Posted: Wed May 19, 2021 10:51 pm
by cnavarro
Dear Otto
It looks great
Very good