----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: yuva_explore Message 4 in Discussion hi Bhavin For generating pdf you can use the tool itextSharp, which is the Open source from sourceforge.net the url is http://itextsharp.sourceforgenet/ Get back to me in case u have any doubts.. Regards yuvaraj ----- Original Message ----- From: BDOTNET To: [email protected] Sent: Thursday, September 01, 2005 11:16 AM Subject: Help me to Create .PDF file ...!!! New Message on BDOTNET Help me to Create .PDF file ...!!! Reply Recommend Message 1 in Discussion From: BhavinDnetonly Hi, I am collecting user information from web pages and al last i want to generate .pdf file containing information. I have generated word file for same using following code. -------------------------- Response.ContentType = "Application/msword"; Response.Charset = ""; System.IO.StringWriter strWriter = new System.IO.StringWriter(); HtmlTextWriter writer; writer = new HtmlTextWriter(strWriter); writer.Write(sthtml); Response.Write(strWriter.ToString()); Response.End(); -------------------------- Here shtlml contains HTML script which is having user information in HTML format as i needed. Now i am trying for pdf file using code .. -------------------------- Response.ContentType = "Application/pdf"; Response.Charset = ""; System.IO.StringWriter strWriter = new System.IO.StringWriter(); HtmlTextWriter writer; writer = new HtmlTextWriter(strWriter); writer.Write(sthtml); Response.Write(strWriter.ToString()); Response.End(); -------------------------- will it work? In my test it is not working. If it is possible then please send me sample code. or guide me some other option. Thank You, Bhavin _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
