Display the result of executing sql statement in the text field

Stimulsoft Reports.NET discussion
Post Reply
vbtux
Posts: 11
Joined: Wed Aug 17, 2011 6:05 am

Display the result of executing sql statement in the text field

Post by vbtux »

Hi,

my code sql is:
select count(F1) from Table1

I wanna know is it possible to display the result of executing sql statement in the text field ?

Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Display the result of executing sql statement in the text field

Post by HighAley »

Hello.
vbtux wrote:my code sql is:
select count(F1) from Table1

I wanna know is it possible to display the result of executing sql statement in the text field ?
You can do it in 2 ways:

1. Use this expression in text box {Totals.Count(Table1)}

2. - Create new Data Source.
- In Select Data windows press New Query.
- Write next query select count(F1) cnt from Table1
- Press Retrieve Columns
- Use next expression in text box {DataSource1.cnt}

Thank you.
vbtux
Posts: 11
Joined: Wed Aug 17, 2011 6:05 am

Display the result of executing sql statement in the text field

Post by vbtux »

Thank a lot. I do not know why I have not thought of that.:biggrin:
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Display the result of executing sql statement in the text field

Post by Andrew »

Hello,

Have a great day!
Post Reply