xsharp.eu • Advantage Database Server ADT files & Report Pro
Page 1 of 1

Advantage Database Server ADT files & Report Pro

Posted: Tue Nov 21, 2017 10:45 pm
by ic2
Is it possible to use Advantage Database Server ADT files in Report Pro 2.x?

If so, how?

Dick

Advantage Database Server ADT files & Report Pro

Posted: Wed Nov 22, 2017 11:11 pm
by ohernandez@sistemas-liasa.com
Yes, We are using them from several years.
You can use the rdd, or you can swap the tables like:
CSCRIPT:=self:swapvariables(AllTrim(self:oTPTABREPORTES_REPORTES:oDCbrowListaRepo:server:SCRIPT))
ODB := AdsSQLServer{ CSCRIPT, true ,FALSE , "AXSQLADT" }
if ODB:Used
AAdd(aswap,{self:oTPTABREPORTES_REPORTES:oDCbrowListaRepo:server:TABLA,,,,,ODB})
endif

then,
include the array in the method:
oTv:Preeliminar(SELF:oTPTABREPORTES_REPORTES:oDCbrowListaRepo:server:FIELDGET(#reporte), SELF:oTPTABREPORTES_REPORTES:oDCbrowListaRepo:server:FIELDGET(#copias), FALSE,clseek,;
clwhile, self:lArchivoRTF, self:cTipoRTF, @cTempFile, aswap,self:oDCimpresora:VALUE)

Advantage Database Server ADT files & Report Pro

Posted: Thu Nov 23, 2017 4:46 pm
by ic2
Thank you Oscar, we a are going to try it.

Dick