rakesh kumar
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by rakesh kumar
-
-
i have a xml file & xsl and i want to convert this in pdf . please give full souce code to convert the xml into pdf by vb.net.
error in converting xml to pdf
in .NET
Posted
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