

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: iTextSharp(iText#) example in asp.net</title>
	<atom:link href="http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/</link>
	<description>PDF &#38; Marketing</description>
	<lastBuildDate>Tue, 02 Mar 2010 06:47:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: masu001</title>
		<link>http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/comment-page-1/#comment-10068</link>
		<dc:creator>masu001</dc:creator>
		<pubDate>Tue, 04 Aug 2009 08:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/#comment-10068</guid>
		<description>I wonder whether you can help me out just 1 step further as it seems like I&#039;ve drawn a blank.

When I run my page locally from Visual Studio, I am able to create a pdf file on the Hard Drive using the following code:

ms.WriteTo(new FileStream(@&quot;C:\PDF\test.pdf&quot;, FIleMode.Create));

but when the site is launched on the server it gives me an error that the path cannot be found.

I need to create the file this way because I will be generating a 120 pdf&#039;s in a loop therefore I cannot use the above method where the pdf is opened in the browser window and the user is left to decide for himself whether he wants to save a copy or not.

Like I said, I&#039;ve managed to do this locally including the loop and pdf generation.</description>
		<content:encoded><![CDATA[<p>I wonder whether you can help me out just 1 step further as it seems like I&#8217;ve drawn a blank.</p>
<p>When I run my page locally from Visual Studio, I am able to create a pdf file on the Hard Drive using the following code:</p>
<p>ms.WriteTo(new FileStream(@&#8221;C:\PDF\test.pdf&#8221;, FIleMode.Create));</p>
<p>but when the site is launched on the server it gives me an error that the path cannot be found.</p>
<p>I need to create the file this way because I will be generating a 120 pdf&#8217;s in a loop therefore I cannot use the above method where the pdf is opened in the browser window and the user is left to decide for himself whether he wants to save a copy or not.</p>
<p>Like I said, I&#8217;ve managed to do this locally including the loop and pdf generation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubypdf</title>
		<link>http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/comment-page-1/#comment-10026</link>
		<dc:creator>rubypdf</dc:creator>
		<pubDate>Thu, 30 Jul 2009 04:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/#comment-10026</guid>
		<description>&lt;code&gt;          
  Document doc=new Document();
            MemoryStream ms=new MemoryStream();
            PdfWriter writer =PdfWriter.GetInstance(doc,ms);
            writer.CloseStream=false;
            doc.Open();
            doc.Add(new Paragraph(DateTime.Now.ToLongDateString()));
            doc.Close();
&lt;/code&gt;
the created pdf will be saved in MemoryStream instance, so you can easily save the data to database.</description>
		<content:encoded><![CDATA[<p><code><br />
  Document doc=new Document();<br />
            MemoryStream ms=new MemoryStream();<br />
            PdfWriter writer =PdfWriter.GetInstance(doc,ms);<br />
            writer.CloseStream=false;<br />
            doc.Open();<br />
            doc.Add(new Paragraph(DateTime.Now.ToLongDateString()));<br />
            doc.Close();<br />
</code><br />
the created pdf will be saved in MemoryStream instance, so you can easily save the data to database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anandraaz</title>
		<link>http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/comment-page-1/#comment-10005</link>
		<dc:creator>anandraaz</dc:creator>
		<pubDate>Tue, 28 Jul 2009 11:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/#comment-10005</guid>
		<description>hey,
your article is good,but where u r creating pdf file.and where u r fill the memory stream..
could u explain bit clearly..
i want to create a pdf file from binary data which is stored in database(I am saving the upload file in binary format in database)..
plz help me...
Regards
AnandRaj</description>
		<content:encoded><![CDATA[<p>hey,<br />
your article is good,but where u r creating pdf file.and where u r fill the memory stream..<br />
could u explain bit clearly..<br />
i want to create a pdf file from binary data which is stored in database(I am saving the upload file in binary format in database)..<br />
plz help me&#8230;<br />
Regards<br />
AnandRaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giridhar</title>
		<link>http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/comment-page-1/#comment-1664</link>
		<dc:creator>Giridhar</dc:creator>
		<pubDate>Mon, 12 Mar 2007 15:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/25/itextsharpitext-example-in-aspnet/#comment-1664</guid>
		<description>thanks for the exaple</description>
		<content:encoded><![CDATA[<p>thanks for the exaple</p>
]]></content:encoded>
	</item>
</channel>
</rss>
