Read table properties

JanJan
edited 10:49AM in FastReport 2.xx VCL
Hello,

How can I know what tables are used in a saved report ?
Can I read the database path and tablename before a preview ?

I use BCB 5

Thanks,
Jan

Comments

  • edited 10:49AM
    TFRReport has the property called Dictionary. The dictionary has several methods to work with the stored variables, datasets, etc..

    Regards:Alex
  • JanJan
    edited 10:49AM
    Alex,

    When I look at Report1->Datadictonary->Variables->Count or Report1->Datadictonary->FieldAliases->Count or Report1->Datadictonary->BandDatasources->Count the all return zero.

    Any idea ?

    Thanks,
    Jan
  • edited 10:49AM
    Maybe You have to prepare the report before accessing these properties. After preparing these objects will be created and you can access them. If you first prepare it then you can call the PrintPreparedReport and ShowPreparedReport methods. I hope this helps.

    Regards:Alex

Leave a Comment