2012年5月18日

摘要: using System;using System.Collections.Generic;using System.Text;using System.Net;using System.Net.Sockets;using System.Configuration;using System.Xml;using System.Collections.Specialized;using System.IO;namespace abc{ public class Socket { static string ip =""; static int port = 80; static 阅读全文
posted @ 2012-05-18 13:14 happay zyx 阅读(20323) 评论(1) 推荐(0) 编辑
 

2009年9月12日

摘要: EPSON LQ 1600K打印设置:1、修改注册表:进入windows的注册表,首先要点击菜单的运行,然后录入命令regedit:在注册表编辑器中,找到设置IE打印的地方" HKEY_CURRENT_USER"Software"Micro-soft"Internet Explorer"PageSetup"。参数说明:header--页眉,footer--页脚,margin_left--左边界 m... 阅读全文
posted @ 2009-09-12 10:45 happay zyx 阅读(6006) 评论(0) 推荐(0) 编辑
 

2009年9月3日

摘要: using System.IO;using System.Text;using iTextSharp.text;using iTextSharp.text.pdf;public partial class Web_Mypolicyview : System.Web.UI.Page{protected void Page_Load(object sender, EventArgs e){BaseFo... 阅读全文
posted @ 2009-09-03 14:36 happay zyx 阅读(318) 评论(0) 推荐(0) 编辑
 

2009年8月28日

摘要: PDF文件是目前比较流行的电子文档格式,在办公自动化(OA)等软件的开发中,经常要用到该格式,但介绍如何制作PDF格式文件的资料非常少,在网上搜来搜去,都转贴的是同一段“暴力”破解的方法,代码片断如下: StreamWriter pPDF=new StreamWriter(filePath); ArrayList xRefs=new ArrayList(); float y... 阅读全文
posted @ 2009-08-28 16:25 happay zyx 阅读(524) 评论(0) 推荐(0) 编辑
 

2009年8月7日

摘要: 1、Math.Round(0.333333,2);//按照四舍五入的国际标准2、double dbdata=0.335333; string str1=String.Format("{0:F}",dbdata);//默认为保留两位 3、float i=0.333333; int j=(int)(i * 100); i = j/100; 4、decimal.Round(decimal.Parse("... 阅读全文
posted @ 2009-08-07 20:23 happay zyx 阅读(15190) 评论(0) 推荐(0) 编辑