PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y 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, 05,abr. 2021 18:58 - No hay respuesta
Miembro registrado
3.655 mensajes
Popularité : +175 (223 votes)
Publicado el 05,abril 2021 - 18:58
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/