TDolphin with FastrReport

TDolphin with FastrReport

Postby aferra » Mon May 23, 2016 4:54 pm

Before doing so with DBF

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

Someone who uses know how to do using the TDolphin?
aferra
 
Posts: 88
Joined: Wed Apr 28, 2010 6:34 pm

Re: TDolphin with FastrReport

Postby Carles » Wed May 25, 2016 5:58 am

aferra,

Ejemplo básico de como crear un dataset

Code: Select all  Expand view


    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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1129
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: TDolphin with FastrReport

Postby aferra » Wed May 25, 2016 8:04 am

gracias Carles, funcionó perfecto, y no tiene que cambiar nada a mis informes, de nuevo gracias
aferra
 
Posts: 88
Joined: Wed Apr 28, 2010 6:34 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests