Datasource fields used

Stimulsoft Reports.WEB discussion
Post Reply
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Datasource fields used

Post by MikeD »


When I run a report...is there a way in code to determine what fields were used to create the report.

When I create a report I use a dataset in the ImportXMLSchema method of the report dictionary.

I create a report that may only use 2-3 fields of the 15 or so fields that is defined in the datsets xml schema.

I want to find out what fields were used.

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Datasource fields used

Post by Edward »

Hi Mike,

Could you please describe your task in greater detail and also to show the code you used?

Thank you.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Datasource fields used

Post by Andrew »

Hello,

Unfortunately, there is no 100% way to define which fields are used in a report. You may try to use the following method: report.Dictionary.RetrievalData

But this method cannot provide 100% guarantee.

Thank you.
hadisaadat_du
Posts: 35
Joined: Tue Nov 09, 2010 2:43 pm
Location: iran

Datasource fields used

Post by hadisaadat_du »

Hi every body.
I sea allmost all topic in forum and seem int all of them posit that we know what is our tables and columns in dataset of our reportbut allways not thus
1-sometime we may want to edit the report in webdesigner that we dont know any thing about its data set but we sure it works with our data base , so befor call the design() function we pass what data set to our report via regdata(//what_dataset) ??
2- or we may want to set full access to data base to one user to create the every report that need to design well we pass a full data base to designer dictionary and he/she design every report by every columns in every tables or viwes in database and save it , in viwe report mode namely after load our report and we want to pass it to stiwebviewer we pass what data set to it since we cant pass all data base to our report ??!
Post Reply