摘要: using System;using System.Collections.Generic;using System.Text;using Word;using System.Data;using System.Collections;namespace Pixysoft.Office{ /// <summary> /// 支持创建、打开、保存、关闭文档 /// 支持页面设置 /// 支持普通文字输入设置 /// 支持表插入 /// 支持BookMark /// </summary> public class WordDocuments {... 阅读全文
posted @ 2011-10-12 20:29 jex 阅读(197) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Excel操作类 /// </summary> public class Excel { #region 私有属性 private _Application _oExcel = null; //Excel应用程序 private _Workbook _oBook = null; //Excel工作薄 private _Worksheet _oSheet = null; //Excel工作表 private bool _visible=false; //是... 阅读全文
posted @ 2011-10-12 20:29 jex 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.闪回删除的表/数据drop from tb_test;SELECT * FROM user_recyclebin WHERE original_name=‘drop_test’;flashback table tb_test to before drop;2.闪回更新数据update tb_test set name= 'xxxxxx' where name='yyyy';alter table tb_test enable row movement;flashback table tb_test to timestamp to_timestamp(' 阅读全文
posted @ 2011-10-12 14:35 jex 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 一般简繁转换我们看到比较多的是JS版本,这里贴一个用C#实现简繁转换功能的代码: 1.参考Com Microsoft Word 11.0 Object Library,这一点在安装Office时必须选择.NET编程组件。 2.using Microsoft.Office.Interop.Word; 3.using System.Reflection; 4.利用word简繁体转换方法写转换方法。static string CHS2CHT(string src) { string des = ""; _Application appW... 阅读全文
posted @ 2011-10-12 08:42 jex 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 为了保护软件的著作权,又想让用户有个好的体验,我们需要设计软件评估期,这里贴一个用C#实现软件评估期30天的限制的实例代码:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Infralution.Licensing.CF; namespace Geoff.DeviceApplication { p... 阅读全文
posted @ 2011-10-12 08:41 jex 阅读(2986) 评论(1) 推荐(2) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace TaskbarSwitch{ public partial class Form1 : Form { public Form1() { ... 阅读全文
posted @ 2011-10-12 08:38 jex 阅读(444) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Diagnostics;namespace Prolink.EHU.WebGui.classes{/// <summary>/// ExcelOperation 的摘要说明。/// </summary>public class ExcelOperation{ private object missing = System.Reflection.Missing.Value; // 在引用excel时,有些参数为空,就用它替换 private Excel.Application excel = new Excel.Appl 阅读全文
posted @ 2011-10-12 08:38 jex 阅读(334) 评论(0) 推荐(0) 编辑