Im woking with asp.net c# and I have a XML that I want to view in a reportview is this posible? any help? here is the example of the xml code:
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<DefaultView>
<USERID>1</USERID>
<NAME>John Sanders</NAME>
<TITLE>MIS</TITLE>
<CHECKTIME>2014-06-02T07:21:44-04:00</CHECKTIME>
<CHECKTYPE>I</CHECKTYPE>
<trans>1</trans>
</DefaultView>
<DefaultView>
<USERID>1010</USERID>
<NAME>Greg Fiser</NAME>
<TITLE>SIP</TITLE>
<CHECKTIME>2014-06-02T06:59:35-04:00</CHECKTIME>
<CHECKTYPE>X</CHECKTYPE>
<trans>1347</trans>
</DefaultView>
<DefaultView>
<USERID>1010</USERID>
<NAME>Jose Batista</NAME>
<TITLE>SIP</TITLE>
<CHECKTIME>2014-06-02T12:02:50-04:00</CHECKTIME>
<CHECKTYPE>I</CHECKTYPE>
<trans>1348</trans>
</DefaultView>
</NewDataSet>
And the code how I extor the data to XML:
protected void btnReport_Click(object sender, EventArgs e)
{
DataSourceSelectArguments args = new DataSourceSelectArguments();
DataView view = (DataView)SqlDataSource1.Select(args);
DataTable table = view.ToTable();
DataSet ds = new DataSet();
ds.Tables.Add(table);
ds.WriteXml("employeeData.xml");
Any way to get the XML file to reportview?
No comments:
Post a Comment