c# - SSRS with Custom DataSet (System.Data.DataSet) -
how create report dataset object?
hers existing approach,
- create connection string.
- create query string.
write rdl file manually using xmlwriter above details, like
<datasources> <datasource name="mydatasource"> <connectionproperties> <dataprovider>sql</dataprovider> <connectstring>my connection string</connectstring> <integratedsecurity>true</integratedsecurity> </connectionproperties> <rd:securitytype>integrated</rd:securitytype> <rd:datasourceid>my data source id</rd:datasourceid> </datasource> </datasources> <datasets> <dataset name="mydataset"> <query> <datasourcename>mydatasource</datasourcename> <commandtext>my query string</commandtext> </query> <fields> <field name="myfield1"> <datafield>myfield1</datafield> <rd:typename>type</rd:typename> </field> <field name="myfield2"> <datafield>myfield2</datafield> <rd:typename>type</rd:typename> </field> </fields> </dataset>
convert
.rdl
file byte stream.load report report server using
createreport
method inreportingservice
.this working fine me, need following,
i have
dataset
object (system.data.dataset
) want createreport/.rdl
using dataset. so, there no connection string data set object, or there approach data set object.kindly me
Comments
Post a Comment