<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by venkatzeus</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by venkatzeus</title>
		<link>http://channel9.msdn.com/Niners/venkatzeus/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/venkatzeus/Discussions</link>
	<language>en</language>
	<pubDate>Mon, 20 May 2013 01:14:15 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 01:14:15 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - Creating pdf file using C#  causes &quot;Adobe reader cannot open file&quot; error</title>
		<description><![CDATA[<p>Hi,</p><p>There&nbsp;really is a first time for everything. you dont really learn everything the time you start working. It is through mistakes that you learn. I got &quot;iText&quot; now. will try it using that. </p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Creating-pdf-file-using-C-causes-Adobe-reader-cannot-open-file-error/73028e357aaf4a0cb5189e6d0073b21e#73028e357aaf4a0cb5189e6d0073b21e</link>
		<pubDate>Sun, 16 Jan 2011 07:01:14 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Creating-pdf-file-using-C-causes-Adobe-reader-cannot-open-file-error/73028e357aaf4a0cb5189e6d0073b21e#73028e357aaf4a0cb5189e6d0073b21e</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf file using C#  causes &quot;Adobe reader cannot open file&quot; error</title>
		<description><![CDATA[<p>Hi,</p><p>I am using VS 2010 and C#. I am trying to create a pdf file in web application.</p><p>I am trying to convert a dataset to pdf file. The pdf file is getting generated, but when i try to open the pdf, i am getting the error as &quot;Adobe reader could not open &quot;sample.pdf&quot; because it is either not a supported file type or because the file has been damaged&quot;</p><p>I have tried with &quot;application/pdf&quot; as well as &quot;application/octet-stream&quot;. Both are giving the same error. </p><p>How to fix this?</p><p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Creating-pdf-file-using-C-causes-Adobe-reader-cannot-open-file-error/d6ff39b0fd29410189e49e6c011e40cc#d6ff39b0fd29410189e49e6c011e40cc</link>
		<pubDate>Sat, 15 Jan 2011 17:22:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Creating-pdf-file-using-C-causes-Adobe-reader-cannot-open-file-error/d6ff39b0fd29410189e49e6c011e40cc#d6ff39b0fd29410189e49e6c011e40cc</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Moss 2007 - Activated Feature working only for Admin Account</title>
		<description><![CDATA[<p>Hi,</p>
<p>Thank you very much the reply. </p>
<p>Is there any solution you could suggest to correct that behavior.</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Moss-2007-Activated-Feature-working-only-for-Admin-Account/eb6068645de24b1b98489df900d2565a#eb6068645de24b1b98489df900d2565a</link>
		<pubDate>Wed, 22 Sep 2010 12:45:48 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Moss-2007-Activated-Feature-working-only-for-Admin-Account/eb6068645de24b1b98489df900d2565a#eb6068645de24b1b98489df900d2565a</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Moss 2007 - Activated Feature working only for Admin Account</title>
		<description><![CDATA[<p>Hi,</p>
<p>Thank you very much for the reply. I understand that I should have used WSPBuilder. I would download it and start working with it as you mentioned.</p>
<p>I checked the blog and changed code to below:</p>
<p><pre class="brush: csharp">
    public static class SpSecurityHelper
    {
        public static SPSite GetElevatedSite(SPSite theSite)
        {
            SPUserToken sysToken = GetSystemToken(theSite);
            return new SPSite(theSite.ID, sysToken);
        }

        public static SPUserToken GetSystemToken(SPSite site)
        {
            site.CatchAccessDeniedException = false;
            try
            {
                return site.SystemAccount.UserToken;
            }
            catch (UnauthorizedAccessException)
            {               
                SPUserToken sysToken = null;
            
                SPSecurity.RunWithElevatedPrivileges(
                delegate()
                {
                    using (SPSite lolcatKiller = new SPSite(site.ID))
                    {
                        sysToken = lolcatKiller.SystemAccount.UserToken;                    
                    }
                }
                );
                return sysToken;
            }
        }
    } 


  public class ItemCounting : SPItemEventReceiver
    {
        public override void ItemAdded(SPItemEventProperties properties)
        {
            base.ItemAdded(properties);
            GetOpenItems();
        }

public override void ItemDeleted(SPItemEventProperties properties)
        {
            base.ItemDeleted(properties);
            GetOpenItems();
        }


public static void GetOpenItems()
  {
using (SPSite site = SpSecurityHelper.GetElevatedSite(new SPSite(Constants.url)))
  {
using (SPWeb currentweb = site.OpenWeb())
  {
SPListCollection mylists = currentweb.GetListsOfType(SPBaseType.DocumentLibrary);
for (int q = mylists.Count - 1; q &gt;= 0; q--)                           
{
SPList list = mylists[q];

if (!list.Hidden)
{                              
currentweb.AllowUnsafeUpdates = true;
SPFolder folder = list.RootFolder;
SPView curview = list.DefaultView;
SPViewFieldCollection fieldCol = curview.ViewFields;
if (!fieldCol.Exists(&quot;FilesCount&quot;))
{
AddField(&quot;FilesCount&quot;, SPFieldType.Text, list.Fields);
fieldCol.View.DefaultView = true;                                      
curview.ViewFields.Add(&quot;FilesCount&quot;);
curview.Update();                                  
}
                                           
int jouas = 0;                              
if (folder != null &amp;&amp; folder.Name.CompareTo(&quot;Forms&quot;) != 0)
{
   foreach (SPFolder subFolder in folder.SubFolders)
  {                                         
if (subFolder.Name.CompareTo(&quot;Forms&quot;) != 0)
    {
    jouas = GetItemsForFolderInt(subFolder);
   subFolder.Item[&quot;FilesCount&quot;] = jouas;
   subFolder.Item.Update();    
}
}
}                              
  }
}               
}
}
}
}</pre></p>
<p>&nbsp;</p>
<p>The code is still running only for Admin account and not for other users. Any suggestions on this.</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Moss-2007-Activated-Feature-working-only-for-Admin-Account/fe1819a6f8cb4bc88f0f9df900bc85ce#fe1819a6f8cb4bc88f0f9df900bc85ce</link>
		<pubDate>Wed, 22 Sep 2010 11:26:23 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Moss-2007-Activated-Feature-working-only-for-Admin-Account/fe1819a6f8cb4bc88f0f9df900bc85ce#fe1819a6f8cb4bc88f0f9df900bc85ce</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Moss 2007 - Activated Feature working only for Admin Account</title>
		<description><![CDATA[<p>Hi,</p>
<p>&nbsp;</p>
<p>I had created a feature and activated in the SharePoint site using&nbsp;the Admin account. The feature was to count the number of files under each sub folder. The feature got activated successfully. I tested the code under the Admin account, and it was working.<br />I tried to test with other users, who had design and contribute access. But when the other users checked, the count was not showing. No errors were generated. This is the code I have used.</p>
<p>&nbsp;</p>
<p><pre class="brush: csharp"> public static void GetOpenItems()
  {
using (SPSite site = new SPSite(Constants.url))
  {
using (SPWeb currentweb = site.OpenWeb())
  {
SPListCollection mylists = currentweb.GetListsOfType(SPBaseType.DocumentLibrary);
for (int q = mylists.Count - 1; q &gt;= 0; q--)                           
{
SPList list = mylists[q];

if (!list.Hidden)
{                              
currentweb.AllowUnsafeUpdates = true;
SPFolder folder = list.RootFolder;
SPView curview = list.DefaultView;
SPViewFieldCollection fieldCol = curview.ViewFields;
if (!fieldCol.Exists(&quot;FilesCount&quot;))
{
AddField(&quot;FilesCount&quot;, SPFieldType.Text, list.Fields);
fieldCol.View.DefaultView = true;                                      
curview.ViewFields.Add(&quot;FilesCount&quot;);
curview.Update();                                  
}
                                           
int jouas = 0;                              
if (folder != null &amp;&amp; folder.Name.CompareTo(&quot;Forms&quot;) != 0)
{
   foreach (SPFolder subFolder in folder.SubFolders)
  {                                         
if (subFolder.Name.CompareTo(&quot;Forms&quot;) != 0)
    {
    jouas = GetItemsForFolderInt(subFolder);
   subFolder.Item[&quot;FilesCount&quot;] = jouas;
   subFolder.Item.Update();    
}
}
}                              
  }
}               
}
}
}</pre></p>
<p>&nbsp;</p>
<p>These are the steps I used to install the feature from dev environment to Production environment.</p>
<p>&nbsp;</p>
<p>1) Copied the dll from GAC and pasted in Production server's GAC.</p>
<p>&nbsp;</p>
<p>2) Copied the relevant feature folders from 12 hive and pasted in the corresponding 12 hive of production server</p>
<p>&nbsp;</p>
<p>3) Used the Stsadm Install and Activate commands for the site.</p>
<p>&nbsp;</p>
<p>Is there anything else I should be doing? </p>
<p>&nbsp;</p>
<p>Please help.. I am not sure, what to do. The feature is working only&nbsp;for Admin account and not for users having other permissions.</p>
<p>&nbsp;</p>
<p>Thank you.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Moss-2007-Activated-Feature-working-only-for-Admin-Account/e298336ee50b4c6987dc9df9007ef5ec#e298336ee50b4c6987dc9df9007ef5ec</link>
		<pubDate>Wed, 22 Sep 2010 07:42:14 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Moss-2007-Activated-Feature-working-only-for-Admin-Account/e298336ee50b4c6987dc9df9007ef5ec#e298336ee50b4c6987dc9df9007ef5ec</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">Sven Groot said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>Sven, I can't help but read this thread with amusement. I think it's worth giving up, there's no hope for venkatzeus here; I get the impression he has absolutely zero hold on any of the concepts involved.</p>
</div></blockquote>
<p>Hi,</p>
<p>&nbsp;</p>
<p>I got the solution. One of the methods had a Url, which pointed to the pdf. I then used that with Process.start and invoked the pdf.</p>
<p>&nbsp;</p>
<p>Thanks Sven Groot and all for the help.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/2df310cb4b5e4d96a15d9dea00aa6469#2df310cb4b5e4d96a15d9dea00aa6469</link>
		<pubDate>Mon, 21 Jun 2010 05:22:03 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/2df310cb4b5e4d96a15d9dea00aa6469#2df310cb4b5e4d96a15d9dea00aa6469</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">venkatzeus said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>What's a blob? I know what it is in database terms, but in C# terms it means nothing.</p>
<p>&nbsp;</p>
<p>What's the .Net type, the class name, of the web method's return value?</p>
</div></blockquote>
<p>In the webreference, when I add the reference, I get the following:</p>
<p>&nbsp;</p>
<p></p>
<pre class="brush: csharp">
WebMethodName ( id As int ) As BLOB
</pre>
<p></p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/0de55a550b844c1abf2d9dea00aa643e#0de55a550b844c1abf2d9dea00aa643e</link>
		<pubDate>Sat, 19 Jun 2010 06:59:01 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/0de55a550b844c1abf2d9dea00aa643e#0de55a550b844c1abf2d9dea00aa643e</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">venkatzeus said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>Using the BinaryFormatter.Serialize method&nbsp;doesn't just write out the raw data of the object. It adds all kinds of stuff to ensure that the data can be safely deserialized again, like .Net type names. So the result of this method will definitely not be a
 valid PDF file.</p>
<p>&nbsp;</p>
<p>If the web service's return value indeed contains a PDF document in some format, you need to properly extract that data somehow. Without knowing the web services actual return type I can't help you with that. What is the type of the object returned by the
 web method?</p>
</div></blockquote>
<p>The Web Method returns a blob</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/1aac0f43a81a4bb5b32f9dea00aa642d#1aac0f43a81a4bb5b32f9dea00aa642d</link>
		<pubDate>Sat, 19 Jun 2010 06:46:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/1aac0f43a81a4bb5b32f9dea00aa642d#1aac0f43a81a4bb5b32f9dea00aa642d</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">venkatzeus said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>No, that's not what you're doing at all. You're creating a byte array, containing a serialized object graph (which is not valid PDF data), and then telling the browser to interpret that data as if it were&nbsp;a PDF.</p>
<p>&nbsp;</p>
<p>You are creating a PDF file, but the contents you supply for that file (the serialized object graph) is not a valid PDF document, so of course Adobe Reader can't open it. There is no magic process that can convert a serialized object graph to a PDF.</p>
<p>&nbsp;</p>
<p>What are you trying to do here exactly? What kind of data is that web service returning, and how is that data meant to be presented as a PDF?</p>
</div></blockquote>
<p>Hi,</p>
<p>Thank you very much for the reply. Thanks for correcting me.</p>
<p>&nbsp;</p>
<p>The web service returns a pdf file as a&nbsp;serialized data, which has the return type as blob.
</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/a188ae81b75b4172a7789dea00aa6419#a188ae81b75b4172a7789dea00aa6419</link>
		<pubDate>Sat, 19 Jun 2010 06:31:31 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/a188ae81b75b4172a7789dea00aa6419#a188ae81b75b4172a7789dea00aa6419</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">venkatzeus said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>There is no way that serializing an object could yield a valid PDF. How were you expecting this to become a PDF?</p>
</div></blockquote>
<p>I am converting to a byte array, and then using byte array to create a pdf. </p>
<p>&nbsp;</p>
<p>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/b92682ac5b114e6b9cfe9dea00aa6402#b92682ac5b114e6b9cfe9dea00aa6402</link>
		<pubDate>Sat, 19 Jun 2010 04:57:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/b92682ac5b114e6b9cfe9dea00aa6402#b92682ac5b114e6b9cfe9dea00aa6402</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<p>You're not creating a PDF, you're just serving the raw bytes of a PDF to the client.</p>
<p>&nbsp;</p>
<p>Where are you getting your bytes from?</p>
</div></blockquote>
<p>Hi,</p>
<p>Thank you very much for the reply.</p>
<p>I am converting a serilaized data,which i recieve from a web service to a byte array.
</p>
<p>&nbsp;</p>
<p>I am missing anything. Thank you</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/9d6d812a0ec7413fab2d9dea00aa63f0#9d6d812a0ec7413fab2d9dea00aa63f0</link>
		<pubDate>Sat, 19 Jun 2010 04:28:54 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/9d6d812a0ec7413fab2d9dea00aa63f0#9d6d812a0ec7413fab2d9dea00aa63f0</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Creating pdf from byte array in c#</title>
		<description><![CDATA[<p>Hi,</p>
<p>I am using C#. I am trying to create a pdf file from byte array.</p>
<p>&nbsp;</p>
<p>I tried the below code in the page load. The variable blob contains the byte array data.</p>
<p>&nbsp;</p>
<p></p>
<pre class="brush: csharp"> 
Response.Clear(); 
Response.AddHeader(&quot;Content-Length&quot;, blob.Length.ToString()); 
Response.ContentType = &quot;application/pdf&quot;; 
Response.AddHeader(&quot;Accept-Ranges&quot;, &quot;bytes&quot;); 
Response.Buffer = true; 
Response.AddHeader(&quot;Expires&quot;, &quot;0&quot;); 
Response.AddHeader(&quot;Cache-Control&quot;, &quot;must-revalidate, post-check=0, pre-check=0&quot;); 
Response.AddHeader(&quot;Pragma&quot;, &quot;public&quot;); 
Response.AddHeader(&quot;content-Transfer-Encoding&quot;, &quot;binary&quot;); 
Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=sample.pdf&quot;); 
Response.BinaryWrite(blob); 
Response.Flush(); 
Response.End();
</pre>
<p></p>
<p>&nbsp;</p>
<p>The pdf is getting saved. But when I try to open the pdf, I am getting the error as &quot; Acrobat could not open 'sample.pdf' because it is either not a supported file type or because the file has been damaged&quot;</p>
<p>&nbsp;</p>
<p>How to create a pdf file from a byte array?</p>
<p>&nbsp;</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/556523#556523</link>
		<pubDate>Fri, 18 Jun 2010 16:33:09 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/556523-Creating-pdf-from-byte-array-in-c/556523#556523</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to Refresh Adrotator without refreshing the page and not using AJAX</title>
		<description><![CDATA[<p>Hi,</p>
<p>&nbsp;</p>
<p>I am using ASP.NET 2.0&nbsp;and C#.&nbsp; <strong>I&nbsp;am not using AJAX</strong>.</p>
<p>&nbsp;</p>
<p>I have added an Adrotator in my page. I want to&nbsp;refresh the adrotator after&nbsp;every ten seconds. Currently when the adrotator refreshes, the&nbsp;page is also getting refreshed.</p>
<p>&nbsp;</p>
<p>How to refresh the adrotator without refreshing the complete page and not using Ajax?</p>
<p>&nbsp;</p>
<p>Thank you&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/550854-How-to-Refresh-Adrotator-without-refreshing-the-page-and-not-using-AJAX/550854#550854</link>
		<pubDate>Tue, 18 May 2010 13:24:54 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/550854-How-to-Refresh-Adrotator-without-refreshing-the-page-and-not-using-AJAX/550854#550854</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - using ASP.NET Sql server Registration tool</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<p>The error message is pretty self explanatory. What part of it don't you understand?</p>
</div></blockquote>
<p>Hi,</p>
<p>I have logged in as windows user, so the authentication part should be fine. </p>
<p>So didnt knew what went wrong?</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/549624-using-ASPNET-Sql-server-Registration-tool/5ed3cd12e94a4bfca4929deb000e41c0#5ed3cd12e94a4bfca4929deb000e41c0</link>
		<pubDate>Wed, 12 May 2010 11:30:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/549624-using-ASPNET-Sql-server-Registration-tool/5ed3cd12e94a4bfca4929deb000e41c0#5ed3cd12e94a4bfca4929deb000e41c0</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - using ASP.NET Sql server Registration tool</title>
		<description><![CDATA[<p>Hi,</p>
<p>I am trying to register&nbsp;Roles and membership in&nbsp;the Sql Server 2005.&nbsp;I have sql server 2000 and Sql server 2005 in my windows server 2003 machine.</p>
<p>In the command prompt, I tried the following and got the below error:</p>
<p>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&gt;aspnet_regsql -A all -E</p>
<p>Start adding the following features:<br>
Membership<br>
Profile<br>
RoleManager<br>
Personalization<br>
SqlWebEventProvider</p>
<p>.<br>
An error has occurred. Details of the exception:<br>
.The client was unable to establish a connection because of an error during conn<br>
ection initialization process before login. Possible causes include the followin<br>
g:&nbsp; the client tried to connect to an unsupported version of SQL Server; the ser<br>
ver was too busy to accept new connections; or there was a resource limitation (<br>
insufficient memory or maximum allowed connections) on the server. (provider: Na<br>
med Pipes Provider, error: 0 - No process is on the other end of the pipe.)</p>
<p>Unable to connect to SQL Server database.</p>
<p>&nbsp;</p>
<p>How to add the Roles and Membership?</p>
<p>&nbsp;</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/549624-using-ASPNET-Sql-server-Registration-tool/549624#549624</link>
		<pubDate>Wed, 12 May 2010 09:58:43 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/549624-using-ASPNET-Sql-server-Registration-tool/549624#549624</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - creating Tag library in Sharepoint 2007</title>
		<description><![CDATA[<p>Hi,<br>
How to create a tag library in sharepoint 2007. In most of webpages, we can see Tags. When user clicks on the item in the Tag, it displays the relevant search results.</p>
<p>&nbsp;</p>
<p>How to create a&nbsp;&nbsp;Tag library in sharepoint 2007?</p>
<p>&nbsp;</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/547492-creating-Tag-library-in-Sharepoint-2007/547492#547492</link>
		<pubDate>Sat, 01 May 2010 11:09:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/547492-creating-Tag-library-in-Sharepoint-2007/547492#547492</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Images not getting displayed in classic ASP</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">ZippyV said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">venkatzeus said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>That folder should be a subdirectory of your website, not a random directory on your server. IIS is not configured to serve files from that directory.</p>
</div></blockquote>
<p>Thank you very much for the reply.</p>
<p>&nbsp;</p>
<p>I got it.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/538455-Images-not-getting-displayed-in-classic-ASP/1748076ddbb448de98a49deb000d04bc#1748076ddbb448de98a49deb000d04bc</link>
		<pubDate>Tue, 23 Mar 2010 09:55:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/538455-Images-not-getting-displayed-in-classic-ASP/1748076ddbb448de98a49deb000d04bc#1748076ddbb448de98a49deb000d04bc</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Any alternative to mailto option?</title>
		<description><![CDATA[<p>Hi,</p>
<p>The mailto: command is very useful,&nbsp; but not so useful when a large chunk of HTML formatted body text must also be sent.
</p>
<p>&nbsp;</p>
<p>I want my application to to create a full new mail message (in the default mail client, usually Outlook), which the user can then modify and send. Specifying mailto: someid ?body=XXX&nbsp; will not suffice, as the body text is too long and must be HTML formatted.</p>
<p>&nbsp;</p>
<p>Is there any alernate to using the mailto command.</p>
<p>&nbsp;</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/538567-Any-alternative-to-mailto-option/538567#538567</link>
		<pubDate>Tue, 23 Mar 2010 07:42:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/538567-Any-alternative-to-mailto-option/538567#538567</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Images not getting displayed in classic ASP</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<p>It seems to me as though you've neglected the first step of web-application debugging: looking at the generated HTML sent to the browser.</p>
<p>&nbsp;</p>
<p>If you do, you'll see that your script is sending absolute file paths to the client. You should be sending paths relative to the current script URL.</p>
</div></blockquote>
<p>Hi,</p>
<p>&nbsp;</p>
<p>Thank you very much for the reply.</p>
<p>The Images are available in the server's (D:\Newfolder) path. </p>
<p>&nbsp;</p>
<p>How to convert this absolute path to a relative path in ASP&nbsp;and send.</p>
<p>&nbsp;</p>
<p>Could you please help me in this.</p>
<p>&nbsp;</p>
<p>Thank you</p>
<p>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/538455-Images-not-getting-displayed-in-classic-ASP/89bac3434bf14fed938f9deb000d0464#89bac3434bf14fed938f9deb000d0464</link>
		<pubDate>Mon, 22 Mar 2010 13:06:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/538455-Images-not-getting-displayed-in-classic-ASP/89bac3434bf14fed938f9deb000d0464#89bac3434bf14fed938f9deb000d0464</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Images not getting displayed in classic ASP</title>
		<description><![CDATA[<p>Hi,</p>
<p>&nbsp;</p>
<p>I am using classic ASP. I have few images in my folder, which is inside the wwwroot of the server. I am trying to display the images in a ASP page. Below is the code i have used.</p>
<p>&nbsp;</p>
<p></p>
<pre class="brush: text">
&lt;% Option Explicit %&gt; 
&lt;html&gt; &lt;head&gt; &lt;title&gt;Untitled&lt;/title&gt; &lt;/head&gt; 
&lt;body&gt; 
&lt;form action=&quot;&lt;%= Request.ServerVariables(&quot;SCRIPT_NAME&quot;) %&gt;&quot; method=&quot;post&quot;&gt;
 &lt;input type=&quot;text&quot; name=&quot;directory&quot; value=&quot;D:\NewFolder\&quot;/&gt; 
&lt;input type=&quot;submit&quot;&gt; 
&lt;/form&gt; 
&lt;% 
Dim strPath, fso, fsoFolder, fsoFile, i 
If Request.Form(&quot;directory&quot;) &lt;&gt; &quot;&quot; Then
 strPath = Request.Form(&quot;directory&quot;) 
If Not Right(strPath, 1) = &quot;\&quot; Then 
strPath = strPath &amp; &quot;\&quot; 
End If 
Set fso = Server.CreateObject(&quot;Scripting.FileSystemObject&quot;) 
If fso.FolderExists(strPath) = True Then 
Set fsoFolder = fso.GetFolder(strPath) 
i = 1 
For Each fsoFile In fsoFolder.Files 
If UCase(fso.GetExtensionName(fsoFile.Name)) = &quot;JPG&quot; Or 
_ UCase(fso.GetExtensionName(fsoFile.Name)) = &quot;GIF&quot; Then 
i = i &#43; 1 
Response.Write &quot;&lt;img src=&quot;&quot;&quot; &amp; strPath &amp; fsoFile.Name &amp; &quot;&quot;&quot; height=&quot;&quot;80&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;&quot; &amp; fsoFile.Name &amp; &quot;&quot;&quot;&gt;&quot; 
 
If i = 10 Then Response.Write &quot;&lt;br&gt;&quot; 
End If 
Next 
Else 
Response.Write(&quot;Folder &quot; &amp; strPath &amp; &quot; does not exist.&quot;) 
End If 
Set fso=nothing 
Set fsoFolder=nothing 
End If 
%&gt; 
&lt;/body&gt; &lt;/html&gt;
</pre>
<p></p>
<p>&nbsp;</p>
<p>The images are existing in the computer itself. In the output, i am getting the broken image icon only.</p>
<p>&nbsp;</p>
<p>How to display the images in ASP?</p>
<p>&nbsp;</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/538455-Images-not-getting-displayed-in-classic-ASP/538455#538455</link>
		<pubDate>Mon, 22 Mar 2010 11:59:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/538455-Images-not-getting-displayed-in-classic-ASP/538455#538455</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Open mail inside a mail in Outlook 2007</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<p>The &quot;mailto:&quot; URI-scheme supports parameters.</p>
<p>&nbsp;</p>
<p>Like so:</p>
<p>&nbsp;</p>
<p>mailto:someone@somecompany.com?subject=Subject goes here&amp;cc=CC addresses go here</p>
<p>&nbsp;</p>
<p>Addresses must be comma-separated. <a href="http://www.ianr.unl.edu/internet/mailto.html">
See this page for a reference</a>.</p>
</div></blockquote>
<p>Hi,</p>
<p>&nbsp;</p>
<p>Thank you very much. It helped.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/537459-Open-mail-inside-a-mail-in-Outlook-2007/8c2baa3eebef4321bc009deb000cd9d8#8c2baa3eebef4321bc009deb000cd9d8</link>
		<pubDate>Wed, 17 Mar 2010 05:12:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/537459-Open-mail-inside-a-mail-in-Outlook-2007/8c2baa3eebef4321bc009deb000cd9d8#8c2baa3eebef4321bc009deb000cd9d8</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Open mail inside a mail in Outlook 2007</title>
		<description><![CDATA[<p>Hi,</p>
<p>&nbsp;</p>
<p>I have a mail in Outlook 2007, which has a link in it. When the user clicks on the link, i want to open another mail with predefined To address, cc address, subject and content.</p>
<p>&nbsp;</p>
<p>How to open a new mail with the above details, when user clicks on the link in the mail he receives?</p>
<p>&nbsp;</p>
<p>Thank you</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/537459-Open-mail-inside-a-mail-in-Outlook-2007/537459#537459</link>
		<pubDate>Tue, 16 Mar 2010 06:56:02 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/537459-Open-mail-inside-a-mail-in-Outlook-2007/537459#537459</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Opening word document</title>
		<description><![CDATA[<p>Hi,</p>
<p>&nbsp;</p>
<p>I have a asp page, which is used to send e-mail. In the mail, I have a link to open a document, which is in a webpage.</p>
<p>The user gets the email in mail box(outlook 2007/webmail) . When the user clicks on the link in the mail, i want to fetch the username and password of the user and then send it to web application by which the user can be logged in and display(open) the document.</p>
<p>&nbsp;</p>
<p>How to achieve this?</p>
<p>&nbsp;</p>
<p>Thank you.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/536094-Opening-word-document/536094#536094</link>
		<pubDate>Tue, 09 Mar 2010 11:20:29 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/536094-Opening-word-document/536094#536094</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Decompress file in ASP</title>
		<description><![CDATA[<p>Hi,<br /><br />I have a gzip compressed file. I want to decompress the gzip file<br />I have a xml file called Classes.xml which is a gzip compressed file. I want to decompress the gzip&nbsp;file, before loading the xml file.
<br /><br />How to decompress a gzip file in ASP?<br /><br />Thank you </p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/462341-Decompress-file-in-ASP/462341#462341</link>
		<pubDate>Wed, 25 Mar 2009 05:14:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/462341-Decompress-file-in-ASP/462341#462341</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>1</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Searching XML file</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">What are you using to query the XML? XPath, LINQ to XML (C# or VB?), something else?<br /><br />With XPath it would be something like this:<br />1) /aname/an[@alname=&quot;George&quot;]<br />2) /aname/an[starts-with(@alname, &quot;G&quot;)]<br />3) /aname/an[contains(@alname, &quot;e&quot;)]<br /><br />Note that making the queries case-insensitive would be very awkward with XPath; LINQ to XML would be much easier there.<br /><br />EDIT: Ninja'd by joechung. <img src="http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif" alt="Smiley"></div></blockquote>
<p>Hi,<br />Thank you very much for the reply..<br />I am using XPath to query. <br /><br />I was struck with wild card searching, so had posted it here..</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/452947-Searching-XML-file/7f23b0c297f24088bd2a9deb000328e5#7f23b0c297f24088bd2a9deb000328e5</link>
		<pubDate>Tue, 13 Jan 2009 06:22:53 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/452947-Searching-XML-file/7f23b0c297f24088bd2a9deb000328e5#7f23b0c297f24088bd2a9deb000328e5</guid>
		<dc:creator>venkatzeus</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/venkatzeus/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>