FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TDolphin with FastrReport
Posts: 88
Joined: Wed Apr 28, 2010 06:34 PM
TDolphin with FastrReport
Posted: Mon May 23, 2016 04:54 PM

Before doing so with DBF

oFrPrn:SetWorkArea( <alias>, Select( <alias> ) )

Someone who uses know how to do using the TDolphin?

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: TDolphin with FastrReport
Posted: Wed May 25, 2016 05:58 AM
aferra,

Ejemplo básico de como crear un dataset

Code (fw): Select all Collapse
    cSql := "SELECT c.id, c.id_epoca, e.epoca, c.id_patrimoni "
    cSql += "FROM cat_epoques c "
    cSql += "LEFT JOIN epoques e ON e.id_epoca = c.id_epoca "
    cSql += " WHERE c.id_patrimoni = "
    cSql += ltrim(str( nId ))

    oRsEpo  := oDb:Query( cSql )

    cFldCar := "id_carrer;mini;numero"

    FrPrn:SetUserDataSet( "oRsCar", cFldCar,;
                         {|| oRsCar:GoTop()  },;
                         {|| oRsCar:Skip(1)  },;
                         {|| oRsCar:Skip(-1) },;
                         {|| oRsCar:EoF()    },;
                         {|nField| oRsCar:FieldGet( nField ) })
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 88
Joined: Wed Apr 28, 2010 06:34 PM
Re: TDolphin with FastrReport
Posted: Wed May 25, 2016 08:04 AM

gracias Carles, funcionó perfecto, y no tiene que cambiar nada a mis informes, de nuevo gracias

Continue the discussion