Jump to content

error in converting xml to pdf


rakesh kumar

Recommended Posts

The following code sample shows how the use an XSL to transform an existing XML to PDF:// load the XMLXmlDocument xml = new XmlDocument();xml.Load( "data.xml" );// load the XSLXslTransform xsl = new XslTransform();xsl.Load( "transform.xsl" );// transform the XML using the XSLXmlReader reader = xsl.Transform( xml, null );// create a new PDF document and initialize if from the transformed XMLDocument document = new Document();document.Read( reader );// stream out the PDF to fileFileStream file = new FileStream( "out.pdf", FileMode.Create );document.Write( file ); but here give error in Document document = new Document(); document.Read( reader ); plz give solution . thanx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...