PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → WX (Windev, Webdev e Windev Mobile) - Dynamic Report with one Static Control.
WX (Windev, Webdev e Windev Mobile) - Dynamic Report with one Static Control.
Iniciado por Boller, abr., 05 2021 6:58 PM - Sem resposta
Membro registado
3.274 mensagems
Popularité : +89 (91 votes)
Publicado em abril, 05 2021 - 6:58 PM
Guys this is a great example how to make a Dynamic Report with one Static Control. This example was made with WebDev 24, this can be applied to any development that needs to be build in dynamic mode.

Free code from www.mynetquest.com:

IF HReadFirst(qryRel) = True THEN

FOR EACH qryRel ON Posicao

IF gsCabLinha2Val <> qryRel.Linha1 THEN

x1 = gnValorX
gnNumeroColunas ++
gsNovoControlo = "Linha_" + gnNumeroColunas
xcontrol <-ControlClone(STC_COL_Sistema,gsNovoControlo,x,y)
x = x + gnValorX

xcontrol..Width = gnValorX
xcontrol..HorizontalAlignment = haCenter
xcontrol..Caption = qryRel.Linha1
xcontrol..BrushColor = CorConf[6]
xcontrol..Color = White

ELSE

x1 = x1 + gnValorX
xcontrol..Width = x1

x = x + gnValorX

END

gsCabLinha2Val = qryRel.Linha1

END

END

Download all the code at:

https://lnkd.in/dVM87Bk


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/