随笔分类 -  2 - dot NET

摘要:private void button1_Click(object sender, EventArgs e) { treeView1.Nodes.Clear(); Assembly a = Assembly.LoadFile(Application.ExecutablePath); Type[] types = a.GetTypes(); foreach (Type t in types) { if (t.BaseType.Name == "... 阅读全文
posted @ 2014-02-14 11:17 自由的企鹅 阅读(985) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.IO;using NPOI.SS.UserModel; //NPOIusing NPOI.HSSF.Util; //NPOIusing NPOI.HSSF.UserModel; //NPOIusing NPOI.XSSF.UserModel; //NPOIusing System.Data.SqlClient;using System.Data;请先下载NPOI的所有dll,然后Add r... 阅读全文
posted @ 2014-02-13 11:22 自由的企鹅 阅读(14074) 评论(2) 推荐(5)
摘要:Windows Server 2008 R2 x64 + IIS7.5+ .NET1.1环境:Windows Server 2008 R2 x64 + IIS7.5+ .NET1.1一、安装.NET1.11、dotnetfx.exehttp://download.microsoft.com/download/7/b/9/7b90644d-1af0-42b9-b76d-a2770319a568/dotnetfx.exe2、langpack.exehttp://download.microsoft.com/download/4/b/c/4bce2f4b-548e-4e36-a3f7-46d79a6 阅读全文
posted @ 2013-06-08 10:09 自由的企鹅 阅读(645) 评论(0) 推荐(0)
摘要:背景:由于WEB服务器有固定的使用期限,需要将web server从windows 2003 server 32bit iis6.0升级到windows 2008R2 IIS7.5,并且windows 2008R2 没有32bit版本.由于网站使用的是AD信息的单点登录,所以IE的设置如下:具体操作备注如下:1.Server准备工作a.add into ADb.static IP addressc.add DNS or WINSd.Install IIS 7.5:application server,web service,smtp servicese.Windows firewall,Ope 阅读全文
posted @ 2013-06-08 10:07 自由的企鹅 阅读(1440) 评论(0) 推荐(0)
摘要:1.Print screenView Code Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim memoryImage As Bitmap Dim myGraphics As Graphics = Me.CreateGraphics() Dim s As Size = New Size(1280, 1024) memory... 阅读全文
posted @ 2011-10-21 09:30 自由的企鹅 阅读(265) 评论(0) 推荐(0)
摘要:Gridview to Excel & unreadable codes 阅读全文
posted @ 2011-09-08 16:12 自由的企鹅 阅读(280) 评论(0) 推荐(0)