Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. export to excel using xslt when the column name contains blank??

export to excel using xslt when the column name contains blank??

Scheduled Pinned Locked Moved ASP.NET
xmlquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steven_wong
    wrote on last edited by
    #1

    Hello: I am now creating an excel file using xslt with the code below: dim objFsXML as System.IO.StringReader dim objXmlTxtWrt as System.Xml.XmlTextReader dim objXPath as System.Xml.Xpath.XpathDocument dim objXslTran as System.Xml.Xsl.XslTransform 'Create Output Stream to write the file to disk objFsXML = New System.IO.FileStream(strExcelFile,System.IO.FileMode.Create) objXmlTxtWrt = New XmlTextWriter(objFsXML,System.Text.Encoding.Unicode) 'Create Xpath Doc to be given as used while doing the XSL Trannsfor objStrRdr = New StringReader(dsDataSet.GetXml) objXmlTxtRdr = New XmlTextReader(objStrRdr) objXPath = New XPath.XPathDocument(objXmlTxtRdr) objXslTran = New Xsl.XslTransform objXslTran.Load(strXSLTempFile)' here throws exception However, when there is a blank or a special char in one of my headers, i've got an invalid xpath expression which throw an exception what can i do ? thx

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups