摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///合并单元格,并赋值,对指定WorkSheet操作///</summary>///<paramname="sheetIndex">W... 阅读全文
posted @ 2009-08-26 16:40 Js·Jerry 阅读(1074) 评论(1) 推荐(0)
摘要: 添加引用:Microsoft Excel 11.0 Object Library ;添加:using Microsoft.Office.Interop.Excel;一、打开Excel文件============================ Microsoft.Office.Interop.Excel.Application excel1 = new Microsoft.Office.Inter... 阅读全文
posted @ 2009-08-26 16:32 Js·Jerry 阅读(522) 评论(0) 推荐(0)
摘要: 方法1 字符串读取import java.io.*;import org.w3c.dom.*;import javax.xml.parsers.*;public class MyXMLReader {/** * @param args */public static void main(String[] args) {long lasting =System.currentTimeMillis()... 阅读全文
posted @ 2009-07-27 10:50 Js·Jerry 阅读(213) 评论(0) 推荐(0)
摘要: 1. 浏览器国际化前台<% Locale la=new Locale(request.getLocale().getLanguage());//获取request.getLocale().getLanguage() 请求浏览器的语言 ResourceBundle bundle =ResourceBundle.getBundle("abc.LogMessageFile",la);//Reso... 阅读全文
posted @ 2009-07-27 10:42 Js·Jerry 阅读(367) 评论(0) 推荐(0)
摘要: Java中异常机制的研究 收藏 转载于http://www.v108.net/Article_44/20041129132323443-1.html首先Java的异常是面向对象的。一个Java的Exception是一个描述异常情况的对象.当出现异常情况时,一个Exception对象就产生了,并放到异常的成员函数里。 Java的异常处理是通过5个关键词来实现的:try,catch,throw,thr... 阅读全文
posted @ 2009-07-27 10:34 Js·Jerry 阅读(146) 评论(0) 推荐(0)
摘要: 前台<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" uiculture="auto" Inherits="WebApplication3._Default" culture="auto" meta:resourcekey="PageResource1" %><%@ Import ... 阅读全文
posted @ 2009-05-29 11:36 Js·Jerry 阅读(675) 评论(0) 推荐(0)