rakesh kumar Posted November 5, 2005 Share Posted November 5, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now