Jump to content
Fivewin Brasil

If com Report


Luiz Arruda (ICO)

Recommended Posts

Boa tarde..

Pessoal, tenho um relatorio bem simples com tREPORT, só para demonstrar quem é registrado e quem é diarista.


REPORT oRpt TITLE "RELAÇÃO DE EMPREGADOS", ;

"RAZÃO SOCIAL: &eemp", ;

"EMPRESA: &wFazenda" LEFT ;

HEADER "Data: "+DTOC(DATE()),"Página: "+STRZERO(oRpt:nPage,3) RIGHT ;

FOOTER "NewRelJat()" RIGHT ;

FONT oFont1,oFont2,oFont3;

PREVIEW CAPTION "Relação de Empregados"

COLUMN TITLE "CONTA" DATA NewRel->Conta

COLUMN TITLE "Nome " DATA NewRel->Nome SIZE 40

COLUMN TITLE "TIPO " DATA "Registrado" NewRel->inic

COLUMN TITLE "ADMISSAO" DATA " / / " size 10

COLUMN TITLE "TP" Data " " SIZE 3

END REPORT

oRpt:CellView()

// oRpt:oTitle:aFont[1]:={|| 3}

oRpt:bStartLine := {|o| If( ++nLines > 70 .and.!oRpt:lFinish, (o:EndPage(), nLines := 1), ) }

Activate REPORT oRpt ON STARTPAGE StartPage() ;

ON POSTEND FimRelatorio()

id=code>id=code>

Antes era demonstrado com "R" e "N" direto do cadastro, agora surgiu a necessidade de escrever "FIXO" e "DIARISTA" só que se eu fizer assim


If TP = "R"

COLUMN TITLE "TIPO " DATA "FIXO" //NewRel->inic

Elseif TP = "N"

COLUMN TITLE "TIPO " DATA "Diarista" //NewRel->inic

Endif

id=code>id=code> id=blue>

Não funciona.. como faço isso ??

Na matricial eu fiz assim e deu certo, só que usando codigo o famoso Prow(),Lin do Clipper e não tReport icon_smile_big.gif

desde já obrigado.

Luiz Arruda

Corumbá-MS

ico.corumba@gmail.com |

http://www.facebook.com/profile.php?id=100000933378029

euchapeu.png

FiveWin 9.04

xHarbour

PellesC

Bcc.

Link to comment
Share on other sites

Boa tarde..

Pessoal, tenho um relatorio bem simples com tREPORT, só para demonstrar quem é registrado e quem é diarista.


REPORT oRpt TITLE "RELAÇÃO DE EMPREGADOS", ;

"RAZÃO SOCIAL: &eemp", ;

"EMPRESA: &wFazenda" LEFT ;

HEADER "Data: "+DTOC(DATE()),"Página: "+STRZERO(oRpt:nPage,3) RIGHT ;

FOOTER "NewRelJat()" RIGHT ;

FONT oFont1,oFont2,oFont3;

PREVIEW CAPTION "Relação de Empregados"

COLUMN TITLE "CONTA" DATA NewRel->Conta

COLUMN TITLE "Nome " DATA NewRel->Nome SIZE 40

COLUMN TITLE "TIPO " DATA "Registrado" NewRel->inic

COLUMN TITLE "ADMISSAO" DATA " / / " size 10

COLUMN TITLE "TP" Data " " SIZE 3

END REPORT

oRpt:CellView()

// oRpt:oTitle:aFont[1]:={|| 3}

oRpt:bStartLine := {|o| If( ++nLines > 70 .and.!oRpt:lFinish, (o:EndPage(), nLines := 1), ) }

Activate REPORT oRpt ON STARTPAGE StartPage() ;

ON POSTEND FimRelatorio()

id=code>id=code>

Antes era demonstrado com "R" e "N" direto do cadastro, agora surgiu a necessidade de escrever "FIXO" e "DIARISTA" só que se eu fizer assim


If TP = "R"

COLUMN TITLE "TIPO " DATA "FIXO" //NewRel->inic

Elseif TP = "N"

COLUMN TITLE "TIPO " DATA "Diarista" //NewRel->inic

Endif

id=code>id=code> id=blue>

Não funciona.. como faço isso ??

Na matricial eu fiz assim e deu certo, só que usando codigo o famoso Prow(),Lin do Clipper e não tReport icon_smile_big.gif

desde já obrigado.

Luiz Arruda

Corumbá-MS

ico.corumba@gmail.com |

http://www.facebook.com/profile.php?id=100000933378029

euchapeu.png

FiveWin 9.04

xHarbour

PellesC

Bcc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...