Read table properties

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 7:37PM
    TFRReport has the property called Dictionary. The dictionary has several methods to work with the stored variables, datasets, etc..

    Regards:Alex
  • JanJan
    edited 7:37PM
    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 7:37PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.