Page 2 of 2

Re: Spirin's fastreport library

Posted: Wed Sep 12, 2018 2:04 pm
by MGA
Angel, I believe this is not possible, you can at most indicate the field names, example:

  : AddDbf ("CUSTOMER", {"Customer-> number", "Customer-> description"))

Now, to solve this your need, you could use array:

cCampos := 'numeronotaxxx,N;descricaoxxx,C'
oFastReport:addArray( 'PEDIDOS' , aVendas , cCampos )

Re: Spirin's fastreport library

Posted: Wed Sep 12, 2018 2:32 pm
by AngelSalom
SGS wrote:Angel, I believe this is not possible, you can at most indicate the field names, example:

  : AddDbf ("CUSTOMER", {"Customer-> number", "Customer-> description"))

Now, to solve this your need, you could use array:

cCampos := 'numeronotaxxx,N;descricaoxxx,C'
oFastReport:addArray( 'PEDIDOS' , aVendas , cCampos )


it's what I was afraid of.
I'll try the array, but with very large tables I do not think it works.
Thank you very much

Re: Spirin's fastreport library

Posted: Wed Sep 12, 2018 5:31 pm
by Otto
Hello,

can you show us how the report should look lime.

Thank you and best regards
Otto

Re: Spirin's fastreport library

Posted: Wed Sep 12, 2018 6:45 pm
by karinha
Excluded.

File with virus.

Sorry.

Regards.

Re: Spirin's fastreport library

Posted: Wed Sep 12, 2018 9:01 pm
by Otto
Thank you. But can't you upload it to a server which allows downloading without all these spam.
Best regards
Otto

Re: Spirin's fastreport library

Posted: Wed Sep 12, 2018 9:12 pm
by AngelSalom
SGS wrote:Angel, I believe this is not possible, you can at most indicate the field names, example:

  : AddDbf ("CUSTOMER", {"Customer-> number", "Customer-> description"))

Now, to solve this your need, you could use array:

cCampos := 'numeronotaxxx,N;descricaoxxx,C'
oFastReport:addArray( 'PEDIDOS' , aVendas , cCampos )


Finally solved with :

Code: Select all | Expand

: AddDbf ("CUSTOMER", {"Customer-> number AS Code of customer", "Customer-> description AS Description Complete"))


Adding "AS" in fields definitions is how to do it.

Re: Spirin's fastreport library

Posted: Thu Sep 13, 2018 12:49 pm
by karinha
Excluded.

Re: Spirin's fastreport library

Posted: Thu Sep 13, 2018 3:58 pm
by MGA
Angel,

congratulations

Re: Spirin's fastreport library

Posted: Thu Sep 13, 2018 6:42 pm
by Otto
Hello João,
thank you. But these files are about FastReport.
I thought you show as a screen shot how the report should look like.

I used FastReport for years but now I am back at EasyReport. Much more flexible.
Also Report designer is for normal users much easier to handle.

Fivewins own printing class is much evolved and with EasyReport you can use the full power of the classes.

I can do all with EasyReport what I can do with FR but do not need other programming languages like Pascal script.

You have full Harbour and Fivewin power.

Thank you for uploading anyway.
Best regards
Otto