Page 1 of 1

Datasource fields used

Posted: Tue Feb 16, 2010 4:43 pm
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.


Datasource fields used

Posted: Tue Feb 16, 2010 7:07 pm
by Edward
Hi Mike,

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

Thank you.

Datasource fields used

Posted: Wed Feb 17, 2010 12:28 am
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.

Datasource fields used

Posted: Tue Nov 09, 2010 2:55 pm
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 ??!