Data Type of Query Object

pinbotpinbot Texas
edited 11:12AM in FastReport .NET

What is the data type of a query object I've added?

In my script I want to "findobject" of a custom query to see if there are any records to hide a child band.

In an OnAfterPrint of a child band, I want to hide a different (later) child band.

Here is the code from my FR Studio script that I want to replicate in FR.Net
if (BilltoAccounts.RecordCount=0) then
Child5.Visible:=false
else
Child5.Visible:=true;

I need the FR.Net equivalent which I'm assuming will use FindObject. I've named the query BilltoAccounts since this is a report I've converted from Fr Studio.

Thanks.

Comments

  • edited May 2009
    It's the TableDataSource. However, if you need just to access the RowCount, you don't have to cast:

    if (Report.GetDataSource("BilltoAccounts").RowCount == 0) ...

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.