0 票支持

用C#实现生成PDF文档(附源码)

   //write by wenhui.org using System; using System.IO; using System.Text; using System.Collections; namespace PDFGenerator { public class PDFGenerator { static float pageWidth = 594.0f; static float pageDepth = 828.0f; static float pageMargin = 30.0f; static float fontSize = 20.0f...

0 票支持

提取HTML代码中文字的C#函数

   /// <summary>   /// 去除HTML标记   /// </summary>   /// <param name="strHtml">包括HTML的源码 </param>   /// <returns>已经去除后的文字</returns>   public static string StripHTML(string strHtm...

0 票支持

怎样在你的应用程序中集成Google搜索?

   How to Integrate Google Searches into Your Application By Klaus Salchner    www.csharphelp.com Introduction The first thing coming to mind when we hear Google is search engine. Google has been able to turn the search business up-side-down within the last five years. The fo...

0 票支持

使用C#与NNTP服务器交互!

   using System; using System.Text; using System.Net; using System.IO; using System.Net.Sockets; using System.Collections; using System.Diagnostics; namespace NntpTools { /// <summary> /// Class1 的摘要说明。 /// </summary> class Debug {   /// <summary&...

0 票支持

C#实现根据域名查询ip实例

   using System; using System.Net; using System.Net.Sockets; namespace GetIpByDomain { /// <summary> /// Class1 的摘要说明。 /// </summary> class Class1 {   /// <summary>   /// 应用程序的主入口点。   /// </summary>  ...

0 票支持

[C#]解决读写包含汉字的txt文件时乱码的问题

   作者:袁晓辉(版权所有) 时间:2005-8-8     当我们用System.IO.StreamReader读取包含汉字的txt文件时,经常会读出乱码(StreamWriater写文本文件也 有类似的问题),原因很简单,就是文件的编码(encoding)和StreamReader/Writer的encoding不对应。     为了解决这个问题,我写了一...

本月热点