dataset -> xml
xml -> html
xslt文件自己写不就完了,msdn上看看

解决方案 »

  1.   

    a.xml b.xslt怎样处理把a.xml中的数据,根据b.xslt转化成html,和excel
      

  2.   

    using System.Xml;
    using System.Xml.Xsl;
    using System.Xml.XPath;
    using System.Text;
    using System.IO;StringWriter sw = new StringWriter();
    XPathDocument doc = new XPathDocument(Server.MapPath("test.xml"));
    XslTransform trans = new XslTransform();
    trans.Load("test.xsl"));
    trans.Transform(doc,null,sw,null);
    Label1.Text = sw.ToString();
    sw.Close()http://community.csdn.net/Expert/topic/3302/3302927.xml?temp=.8954889 
    欢迎参与讨论
      

  3.   

    DataSet ds =new DataSet();
    ds =report;
    ds.Namespace="";
    //Response.ContentType = "text/html";
    Response.Clear();
    string httpHeader="attachment;filename=backup.xls";
    Response.AppendHeader("Content-Disposition", httpHeader);
    Response.Charset = "UTF-8";
    Response.BufferOutput = true;
    XmlDataDocument xdd =new XmlDataDocument(ds);
    System.Xml.Xsl.XslTransform xt =new XslTransform();
    xt.Load(Server.MapPath("BigCheckReport.xslt"));
    xt.Transform(xdd,
      

  4.   

    xt.Transform(xdd,null,Response.OutputStream);
    Response.End();
      

  5.   

    http://dotnet.aspx.cc/ShowDetail.aspx?id=651CB7EE-2A14-4473-58E4-4A38E4CF6D4B