<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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/"><channel><title>C#学习</title><link>http://blog.e-works.net.cn/147018/category/10885.html</link><description>C#学习过程中有用的代码备忘</description><managingEditor>肉香鱼丝</managingEditor><dc:language>zh-CHS</dc:language><generator>.Text Version 0.958.2004.214</generator><item><dc:creator>肉香鱼丝</dc:creator><title>改进的 Html2Xhtml （2）</title><link>http://blog.e-works.net.cn/147018/articles/13253.html</link><pubDate>Wed, 23 Apr 2008 09:58:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/13253.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/13253.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/13253.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/13253.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/13253.html</trackback:ping><description>上篇http://blog.e-works.net.cn/147018/articles/11218.html中谈到Html2Xhtml 中因为javsscript引起转化错误，当时的解决方法是将javsscript预先剔除掉，这虽然有效的避免了转转换错误，但是丢失了javascript中的信息，有时候有些有用的数据就在javascript里面，为此重新进行了代码分析并做了如下的处理。 1、增加一种Pars...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/13253.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>C# 编写SQL SERVER自定义函数</title><link>http://blog.e-works.net.cn/147018/articles/12454.html</link><pubDate>Wed, 09 Apr 2008 11:44:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/12454.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/12454.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/12454.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/12454.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/12454.html</trackback:ping><description>实现通过IP得到省和市的功能，自定义函数SqlString getProvince(SqlString ip)和SqlString getCity (SqlString ip) &amp;nbsp;  using&amp;nbsp;System;using&amp;nbsp;System.Collections.Generic;using&amp;nbsp;System.Text;using&amp;nbsp;System.Data.SqlClient;using&amp;nbsp;Microsoft.SqlServer.Server;using&amp;nbsp;System.Data.SqlTypes;pu...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/12454.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>莫名奇妙的AJAX问题及解决办法</title><link>http://blog.e-works.net.cn/147018/articles/12333.html</link><pubDate>Mon, 07 Apr 2008 06:47:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/12333.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/12333.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/12333.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/12333.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/12333.html</trackback:ping><description>在AccordionPane中建一个GridView，页面代码如下： &amp;nbsp;  &amp;lt;ajaxToolkit:AccordionPane&amp;nbsp;ID="AccordionPane7"&amp;nbsp;runat="server"&amp;gt;&amp;nbsp;&amp;lt;Header&amp;gt;&amp;lt;div&amp;nbsp;class="accordionHeaderSelected"&amp;gt;发布信息预览&amp;lt;/div&amp;gt;&amp;lt;/Header&amp;gt;&amp;nbsp;&amp;lt;Content&amp;gt;&amp;nbsp;&amp;lt;asp:UpdatePanel&amp;nbsp;ID="Upd...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/12333.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>c#生成word文件时的格式控制问题</title><link>http://blog.e-works.net.cn/147018/articles/11220.html</link><pubDate>Thu, 13 Mar 2008 06:38:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/11220.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/11220.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/11220.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/11220.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/11220.html</trackback:ping><description>需要做一个用c#自动生成word文件的小程序，粗略的google了一些代码示例，有一个问题困扰了我半天，就是如何在生成时控制一个段落中有多种格式，比如： &amp;nbsp;&amp;nbsp;&amp;nbsp;这是一个测试文件，由c#生成。 里面包含有大小、加粗、斜体、颜色、下划线。 感觉用select然后设置格式可用，但是好像比较麻烦，后来想了一种变通的方?...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/11220.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>改进的 Html2Xhtml</title><link>http://blog.e-works.net.cn/147018/articles/11218.html</link><pubDate>Thu, 13 Mar 2008 06:22:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/11218.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/11218.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/11218.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/11218.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/11218.html</trackback:ping><description>&amp;nbsp;&amp;nbsp;&amp;nbsp; 因为周刊工具的需要，想高效的提取页面中的相关内容，前一段时间一直在用正则的方式提取，也不是说不好，感觉正则表达好像容易多选或者少选一些内容，要想做完美的正则，可能要花很多功夫。 &amp;nbsp;&amp;nbsp;&amp;nbsp; 后来想到用xml的方式来解析网页，这样，有规律的一些内容（比如table、层叠的div）应该可能...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/11218.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>狂晕，应该是EXCEL 2007的bug吧</title><link>http://blog.e-works.net.cn/147018/articles/10343.html</link><pubDate>Tue, 19 Feb 2008 09:49:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/10343.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/10343.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/10343.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/10343.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/10343.html</trackback:ping><description>编制自动图表程序时，发线有一个图表异常，饼图各块的颜色都是一样的，而不是象正常的各块的颜色相同。分析发现如果最后一个数据项为0，则会出现这样的问题，例如      10人以下  10-50人  50－200人  其它   公司规模  312  523  432  0 用excel做彩色三维饼图会变成。  只要把最后一个0改成别的数字，就又正常了，比如改?...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/10343.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>c#实现EXCEL自动绘制图表</title><link>http://blog.e-works.net.cn/147018/articles/10341.html</link><pubDate>Tue, 19 Feb 2008 09:33:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/10341.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/10341.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/10341.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/10341.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/10341.html</trackback:ping><description>最近再做问卷的自动处理程序，研究了一个星期的EXCEL图表，终于实现了大部分想要的功能（选定数据区域绘制图表、图表位置的调整、图表样式的调整），以下为图表绘制部分的主要代码，备忘一下（chart放在选定数据区域的正下方，缺省大小、采用EXCEL 2007最漂亮的三维样式）。 &amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/10341.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>XDP动态文件转PDF文件</title><link>http://blog.e-works.net.cn/147018/articles/7341.html</link><pubDate>Mon, 05 Nov 2007 09:26:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/7341.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/7341.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/7341.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/7341.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/7341.html</trackback:ping><description>XDP文件是ADOBE推出的一种遵循XML规范的格式，常用于表单的处理。 因为XDP是明文的XML格式，所以可以用程序的方法生成。但是XDP转PDF一般只能用ADOBE的designer手工一个个的转，如果要集成到表单处理中比较麻烦。designer附带一个命令行工具ConvertPDF，可惜只能从PDF转到XDP而不能逆转，所幸designer提供了COM，通过引用，...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/7341.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>c# 读取word文件文本内容</title><link>http://blog.e-works.net.cn/147018/articles/7340.html</link><pubDate>Mon, 05 Nov 2007 09:07:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/7340.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/7340.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/7340.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/7340.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/7340.html</trackback:ping><description>添加morcosoft word&amp;nbsp;12.0 object Library引用（低版本的com也可以） &amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//获得word文件的文本内容&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;string&amp;nbsp;Doc2Text(string&amp;nbsp;docFileName)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbs...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/7340.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>肉香鱼丝</dc:creator><title>c#读取excel文件的代码</title><link>http://blog.e-works.net.cn/147018/articles/6442.html</link><pubDate>Wed, 10 Oct 2007 05:36:00 GMT</pubDate><guid>http://blog.e-works.net.cn/147018/articles/6442.html</guid><wfw:comment>http://blog.e-works.net.cn/147018/comments/6442.html</wfw:comment><comments>http://blog.e-works.net.cn/147018/articles/6442.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.e-works.net.cn/147018/comments/commentRss/6442.html</wfw:commentRss><trackback:ping>http://blog.e-works.net.cn/147018/services/trackbacks/6442.html</trackback:ping><description>c#读取excel文件的代码，支持多工作表 &amp;nbsp;  public&amp;nbsp;DataSet&amp;nbsp;ExcelToDS(string&amp;nbsp;fileName){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;string&amp;nbsp;connStr&amp;nbsp;=&amp;nbsp;"Provider=Microsoft.Jet.OLEDB.4.0;"&amp;nbsp;+"Data&amp;nbsp;Source="+&amp;nbsp;fileName&amp;nbsp;+";"+"Extended&amp;nbsp;Properties=Excel&amp;nbsp;8.0;";&amp;nbsp;&amp;nbsp;&amp;...&lt;img src ="http://blog.e-works.net.cn/147018/aggbug/6442.html" width = "1" height = "1" /&gt;</description></item></channel></rss>