<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A Glass case of Thoughts &#187; .NET</title>
	<atom:link href="http://jyotsna.philogy.com/tag/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://jyotsna.philogy.com</link>
	<description>By Jyotsna Sonawane</description>
	<lastBuildDate>Mon, 06 Feb 2012 00:47:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jyotsna.philogy.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/144e3f216a63c20ec12e9fd5e8727bd2?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>A Glass case of Thoughts &#187; .NET</title>
		<link>http://jyotsna.philogy.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jyotsna.philogy.com/osd.xml" title="A Glass case of Thoughts" />
	<atom:link rel='hub' href='http://jyotsna.philogy.com/?pushpress=hub'/>
		<item>
		<title>C# word automation : Inserting page break</title>
		<link>http://jyotsna.philogy.com/2011/05/30/c-word-automation-inserting-page-break/</link>
		<comments>http://jyotsna.philogy.com/2011/05/30/c-word-automation-inserting-page-break/#comments</comments>
		<pubDate>Mon, 30 May 2011 09:32:50 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA["Microsoft.Office.Interop.Word"]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C# word automation]]></category>
		<category><![CDATA[insert page break]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=781</guid>
		<description><![CDATA[I went through many articles in order to insert a page break in word document with C#. Though they seemed to work for others, they did not for me. But I did find a way to insert breaks. WHERE wrdDocument - Active word document object of type : Microsoft.Office.Interop.Word.Document<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=781&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I went through many articles in order to insert a page break in word document with C#. Though they seemed to work for others, they did not for me. But I did find a way to insert breaks.</p>
<p><pre class="brush: csharp;">
object oEndOfDoc = &quot;\\endofdoc&quot;;
object paramNextPage = WdBreakType.wdSectionBreakNextPage;

wrdDocument.Bookmarks.get_Item(ref oEndOfDoc).Range.InsertBreak(ref paramNextPage);

</pre></p>
<p>WHERE<br />
<em>wrdDocument</em><br />
- Active word document object of type : Microsoft.Office.Interop.Word.Document</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jy0tsna.wordpress.com/781/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jy0tsna.wordpress.com/781/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jy0tsna.wordpress.com/781/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jy0tsna.wordpress.com/781/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jy0tsna.wordpress.com/781/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jy0tsna.wordpress.com/781/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jy0tsna.wordpress.com/781/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jy0tsna.wordpress.com/781/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=781&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2011/05/30/c-word-automation-inserting-page-break/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59272e407d1ae02c38c11a03dbd61cc2?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">pixperiments</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Word Automation: Inserting images with text wrapping around</title>
		<link>http://jyotsna.philogy.com/2011/03/09/c-word-automation-inserting-images-with-text-wrapping-around/</link>
		<comments>http://jyotsna.philogy.com/2011/03/09/c-word-automation-inserting-images-with-text-wrapping-around/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 09:19:44 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C# insert image in word document with text wrap]]></category>
		<category><![CDATA[C# word automation]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=764</guid>
		<description><![CDATA[As I work, I keep noting about my work here. Earlier, I wrote about inserting images in a word document at a bookmark in this post. Later, arose the need for having text wrapping around an image if it is small for document width. Solution is to use frames to achieve it and here is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=764&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I work, I keep noting about my work here. Earlier, I wrote about inserting images in a word document at a bookmark in <a href="http://jyotsna.philogy.com/2010/12/23/c-word-automation-inserting-images/">this</a> post. Later, arose the need for having text wrapping around an image if it is small for document width. Solution is to use frames to achieve it and here is how I did it.</p>
<p>CImage class definition:<br />
<pre class="brush: csharp;">
    public class CImage
    {
        public string Path
        {
            get;
            set;
        }

        public decimal Id
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public Image Bitmap
        {
            get;
            set;
        }

        public bool BusyLoading
        {
            get;
            set;
        }

        public void GetImage()
        {
            try
            {
                BusyLoading = true;
                WebRequest req = WebRequest.Create(Path);
                WebResponse response = req.GetResponse();
                Stream stream = response.GetResponseStream();

                Bitmap = Image.FromStream(stream);
                
                stream.Close();
            }
            catch
            {
                Bitmap = null;
            }
            finally
            {
                BusyLoading = false;
            }
        }

 
        public override bool Equals(object obj)
        {
            CImage objToCompare = obj as CImage;
            if (objToCompare == null)
                return false;
            return this.Id.Equals(objToCompare.Id);
        }
    }
</pre></p>
<p>Adding frame at end of the document (can be any bookmark for that matter)<br />
<pre class="brush: csharp;">
Frame wrdFrame = wrdDocument.Frames.Add(wrdDocument.Bookmarks.get_Item(ref oEndOfDoc).Range);
</pre></p>
<p>WHERE<br />
<em>wrdDocument</em><br />
- Active word document object of type : Microsoft.Office.Interop.Word.Document</p>
<p>Setting frame properties for textwrap and autosize<br />
<pre class="brush: csharp;">
wrdFrame.TextWrap = true;
wrdFrame.VerticalDistanceFromText = 7;
wrdFrame.HorizontalDistanceFromText = 10;
wrdFrame.HeightRule = WdFrameSizeRule.wdFrameAuto;
wrdFrame.WidthRule = WdFrameSizeRule.wdFrameAuto;
</pre></p>
<p>Inserting image in frame<br />
<pre class="brush: csharp;">
Clipboard.SetDataObject(objImage.Bitmap);
wrdFrame.Range.Paste();
</pre></p>
<p>WHERE<br />
<em>objImage</em><br />
- Object of type CImage</p>
<p>And you are done !</p>
<h4>Important information</h4>
<p>You need to add a COM reference to your favorite word object library which should in turn add</p>
<ul>
<li>Microsoft.Office.Core</li>
<li>VBIDE</li>
<li>Word
<ul>&nbsp;</p>
<p>If you do not see these added, make sure you have PIAs for office version installed on your machine.<br />
<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&amp;displaylang=en">Get Office 2007 PIAs here</a><br />
<a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&amp;displaylang=en">Get Office 2003 PIAs here</a></ul>
</li>
</ul>
<h5>Related Posts</h5>
<ul>
<li><a href="http://jyotsna.philogy.com/2010/12/23/c-word-automation-inserting-images/">C# Word Automation: Inserting Images</a></li>
<li><a href="http://jyotsna.philogy.com/2011/03/03/c-word-automation-how-to-add-a-shape-textbox/">C# Word Automation : How to add a Shape textbox</a></li>
<li><a href="http://jyotsna.philogy.com/2010/12/29/c-word-automation-solve-the-rpc-server-is-unavailable-exception-from-hresult-0x800706ba/">C# Word Automation: Solve “The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)”</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jy0tsna.wordpress.com/764/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jy0tsna.wordpress.com/764/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jy0tsna.wordpress.com/764/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jy0tsna.wordpress.com/764/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jy0tsna.wordpress.com/764/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jy0tsna.wordpress.com/764/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jy0tsna.wordpress.com/764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jy0tsna.wordpress.com/764/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=764&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2011/03/09/c-word-automation-inserting-images-with-text-wrapping-around/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59272e407d1ae02c38c11a03dbd61cc2?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">pixperiments</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Word Automation: Inserting Images</title>
		<link>http://jyotsna.philogy.com/2010/12/23/c-word-automation-inserting-images/</link>
		<comments>http://jyotsna.philogy.com/2010/12/23/c-word-automation-inserting-images/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 17:57:21 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C# insert image in word document]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[word automation]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=505</guid>
		<description><![CDATA[I was looking for a way to insert images at a bookmark in a word document and thought should document these for future reference CImage class Definition Scenario 1: You have a path of the image file which is to be inserted Scenario 2: When you have the bitmap in memory Important information You need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=505&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to insert images at a bookmark in a word document and thought should document these for future reference</p>
<p><strong>CImage class Definition</strong></p>
<p><pre class="brush: csharp;">
public class CImage
{
        public string Path
        {
            get;
            set;
        }

        public decimal Id
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public Image Bitmap
        {
            get;
            set;
        }

        public bool BusyLoading
        {
            get;
            set;
        }

        public void GetImage()
        {
            try
            {
                BusyLoading = true;
                WebRequest req = WebRequest.Create(Path);
                WebResponse response = req.GetResponse();
                Stream stream = response.GetResponseStream();

                Bitmap = Image.FromStream(stream);
                stream.Close();
            }
            catch
            {
                Bitmap = null;
            }
            finally
            {
                BusyLoading = false;
            }
        }
}
</pre></p>
<p><strong>Scenario 1:</strong><br />
You have a path of the image file which is to be inserted<br />
<pre class="brush: csharp;">
public static void SetBookMark(Document p_objWordDocument, string p_strName,
          CImage p_objImage)
        {
            if (p_objWordDocument.Bookmarks.Exists(p_strName))
            {
                object objBookMark = p_strName;
                p_objWordDocument.Bookmarks.get_Item(ref objBookMark).Range.InlineShapes.AddPicture(p_objImage.Path, ... dozons of object params ...);
            }
        }
</pre></p>
<p><strong>Scenario 2:</strong><br />
When you have the bitmap in memory<br />
<pre class="brush: csharp;">
public static void SetBookMark(Document p_objWordDocument, string p_strName,
           CImage p_objImage)
        {
            if (p_objWordDocument.Bookmarks.Exists(p_strName))
            {
                object objBookMark = p_strName;
                Clipboard.SetDataObject(p_objImage.Bitmap);
                p_objWordDocument.Bookmarks.get_Item(ref objBookMark).Range.Paste();
            }
        }
</pre></p>
<h4>Important information</h4>
<p>You need to add a COM reference to your favorite word object library which should in turn add</p>
<ul>
<li>Microsoft.Office.Core</li>
<li>VBIDE</li>
<li>Word
<ul>&nbsp;</p>
<p>&nbsp;</p>
<p>If you do not see these added, make sure you have PIAs for office version installed on your machine.<br />
<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&amp;displaylang=en">Get Office 2007 PIAs here</a><br />
<a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&amp;displaylang=en">Get Office 2003 PIAs here</a></ul>
</li>
</ul>
<h5>Related Posts</h5>
<ul>
<li><a href="http://jyotsna.philogy.com/2011/03/09/c-word-automation-inserting-images-with-text-wrapping-around/">C# Word Automation: Inserting images with text wrapping around</a></li>
<li><a href="http://jyotsna.philogy.com/2011/03/03/c-word-automation-how-to-add-a-shape-textbox/">C# Word Automation : How to add a Shape textbox</a></li>
<li><a href="http://jyotsna.philogy.com/2010/12/29/c-word-automation-solve-the-rpc-server-is-unavailable-exception-from-hresult-0x800706ba/">C# Word Automation: Solve “The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)”</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jy0tsna.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jy0tsna.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jy0tsna.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jy0tsna.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jy0tsna.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jy0tsna.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jy0tsna.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jy0tsna.wordpress.com/505/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=505&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2010/12/23/c-word-automation-inserting-images/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59272e407d1ae02c38c11a03dbd61cc2?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">pixperiments</media:title>
		</media:content>
	</item>
		<item>
		<title>Sending email through C#.net</title>
		<link>http://jyotsna.philogy.com/2008/12/09/sending-email-through-cnet/</link>
		<comments>http://jyotsna.philogy.com/2008/12/09/sending-email-through-cnet/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 07:06:32 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=24</guid>
		<description><![CDATA[Module: CEmailManager Calling function: Worker function: Where CGlobalParams: A class responsible for reading values for global parameters Global parameters used here: SMTPPassword    : somevalue SMTPPort   : 587 SMTPRequireSSL    : true SMTPServer    : smtp.gmail.com SMTPUser    : jyotsnas@philogy.com With currently set global parameters, the code sends email with gmail/ google apps over SSL. Setting the SMTPRequireSSL to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=24&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;">Module:</span> CEmailManager<br />
<span style="text-decoration:underline;">Calling function:</span><br />
<pre class="brush: csharp;">
public static bool SendDummyEmail()
{
   return SendEmail(CGlobalParams.AdminEmail, &quot;dummy&quot;, &quot;Hi&quot;);
}</pre><br />
<span style="text-decoration:underline;">Worker function:</span><br />
<pre class="brush: csharp;">
private static bool SendEmail(string p_strTo, string p_strSubject, string p_strBody)
{
   try
   {
      MailMessage objMessage = new MailMessage();

      string[] lstRecipient = p_strTo.Split(',');
      foreach (string strTo in lstRecipient)
      {
          objMessage.To.Add(strTo);
      }

      objMessage.From = new MailAddress(CGlobalParams.SMTPUser, CGlobalParams.EmailSenderDisplay);
      objMessage.Subject = p_strSubject;
      objMessage.Body = p_strBody;

      SmtpClient objClient = new SmtpClient(CGlobalParams.SMTPServer, CGlobalParams.SMTPPort);
      objClient.UseDefaultCredentials = false;
      objClient.Credentials = new System.Net.NetworkCredential(CGlobalParams.SMTPUser, CGlobalParams.SMTPPassword);
      objClient.DeliveryMethod = SmtpDeliveryMethod.Network;

      if (CGlobalParams.SMTPRequireSSL)
      {
          objClient.EnableSsl = true;
      }

      objClient.Send(objMessage);

      return true;
   }
   catch
   {
     return false;
   }
}
</pre><br />
<span style="text-decoration:underline;">Where</span></p>
<p>CGlobalParams: A class responsible for reading values for global parameters</p>
<p>Global parameters used here:</p>
<p>SMTPPassword    : somevalue<br />
SMTPPort   : 587<br />
SMTPRequireSSL    : true<br />
SMTPServer    : smtp.gmail.com<br />
SMTPUser    : jyotsnas@philogy.com</p>
<p>With currently set global parameters, the code sends email with gmail/ google apps over SSL. Setting the SMTPRequireSSL to false, will make the code send email with SMTP server which requires authentication but not SSL.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jy0tsna.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jy0tsna.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jy0tsna.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jy0tsna.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jy0tsna.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jy0tsna.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jy0tsna.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jy0tsna.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=24&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2008/12/09/sending-email-through-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59272e407d1ae02c38c11a03dbd61cc2?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">pixperiments</media:title>
		</media:content>
	</item>
		<item>
		<title>To remember: .net web app deployment</title>
		<link>http://jyotsna.philogy.com/2008/12/06/to-remember-net-web-app-deployment/</link>
		<comments>http://jyotsna.philogy.com/2008/12/06/to-remember-net-web-app-deployment/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 09:55:16 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[csproj]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[excludefrombuild]]></category>
		<category><![CDATA[excludefrombuild .svn]]></category>
		<category><![CDATA[pdb]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[web deployment]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=15</guid>
		<description><![CDATA[Problem: While creating an installer for a .net web application, we usually follow a practice of adding a web deployment project and then adding the pre-compiled web output to a web setup project. An observation is that the precompiled web output contains project files, version control system files if any and debug symbols as well. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=15&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong><br />
While creating an installer for a .net web application, we usually follow a practice of adding a web deployment project and then adding the pre-compiled web output to a web setup project. An observation is that the precompiled web output contains project files, version control system files if any and debug symbols as well.</p>
<p><strong>Solution: </strong><br />
Find a way to remove the files from precompiled web output.  How: Open the web deployment project file and add following so that ItemGroup section looks like following. This example is considering SVN as a version control system.</p>
<pre>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jy0tsna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jy0tsna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jy0tsna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jy0tsna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jy0tsna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jy0tsna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jy0tsna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jy0tsna.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jyotsna.philogy.com&amp;blog=19356036&amp;post=15&amp;subd=jy0tsna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2008/12/06/to-remember-net-web-app-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59272e407d1ae02c38c11a03dbd61cc2?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">pixperiments</media:title>
		</media:content>
	</item>
	</channel>
</rss>
