- 博客(26)
- 资源 (8)
- 收藏
- 关注
转载 rdlc 显示条码
/// /// 生成条码图片 /// /// /// public static Bitmap GetCode39(string strSource) { int x = 5; //左邊界 int y = 5; //上邊界
2009-12-20 16:43:00
4048
原创 查找网页内宽度太大的图片进行缩放以及PNG纠正
//查找网页内宽度太大的图片进行缩放以及PNG纠正 function ReImgSize(obj){ //alert(obj); var imgArr=document.getElementById("content").getElementsByTagName("IMG"); //alert(1); for (i=0;i{ if (document.all) { if (imgArr[i
2009-08-02 13:31:00
927
转载 碰到了好几次的问题Oracle(Oracle日志文件被误删除导致的问题解决(ora-01033,ORA-00313,ORA-00312))
由于使用了一个未经验证的清除垃圾文件的程序,导致Oracle数据库的两个日志文件被非法删除(Redo01,Redo02),导致Oracle无法连接(能启动),系统报错: ora-01033:oracle initializationg or shutdown in progress最开始知道问题是由于文件被误删导致的,但不知道是日志文件被删除,由于数据库应用能启动,因此决定做一
2008-07-05 22:35:00
1917
转载 安装 oracle遇到的问题
在安装Oracle9i,遇到“File not found D:/oracle/ora92/ocs4j/admin/OCS4J.properties”,点击忽略也能完成安装,但是又担心有不妥,于是四处查找答案,不过也没有看到对这个东东的解释。经过反复尝试,终于找到答案,现共享给大家。原因是Oracl
2008-06-22 23:09:00
614
原创 reportviewer使用中的一些问题(转载)
近来,用vs2005开发一个asp.net项目,其中又有让人讨厌的报表。 在vs2003下,集成了水晶报表,相信很多朋友对它已经非常熟悉,到了2005 ,可能是为了照顾开发人员的习惯,依然有水晶,但在部署时却会遇到不少麻烦,让人望而却步。而微软也正式推出了自己的报表工具,并将其做为sqlserver2005一个正式的产品,这就是Reporting Services,该报表如果只在客户端使用则被称为
2008-05-28 18:09:00
5272
2
原创 给报表设置参数
ReportParameter showDescParameter = new ReportParameter("showDescriptions", this.akshowDescriptionsCheckBox.Checked ? "true" : "false"); this.reportViewer1.LocalReport.SetParameters(new R
2008-03-10 14:11:00
763
转载 把阿拉伯数字转换成汉字
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo-- =============================================-- Author: -- Create date: 2008-3-4>-- Description: 将阿拉伯数字转换成汉字大写>-- ============================
2008-03-04 14:33:00
2788
原创 sql把查询的多行记录合并成字符串
declare @str varchar(1000) set @str = select @str = @str+ , + cast(MainID as varchar) from Saleset @str = rtrim(@str) print @str-----------------------------------------declare @output nva
2008-03-03 17:16:00
1308
转载 用 devenv.exe /resetuserdata 恢复Visual Studio 初始状态
如果 Visual Studio 在运行时被损坏,且无法从损坏状态进行恢复,您可以使用此参数将 Visual Studio 重置到其使用之初的状态。这些问题的例子可能包括:窗口布局文件被破坏、菜单自定义文件被破坏,或者键盘快捷方式文件被破坏。免责声明:如果使用此参数,您将丢失所有的环境设置和自定义设置。出于这个原因,Microsoft 不公开支持使用此参数,而且也没有将这个参数公之于众(如果在命令
2008-02-25 15:23:00
1224
原创 获取图片
@ WebHandler Language="C#" Class="Handler" %>using System;using System.IO;using System.Drawing;using System.Web;public class Handler : IHttpHandler ...{ public void ProcessRequest(HttpContext con
2008-01-11 17:30:00
727
原创 删除文件文件或图片
/**//// /// 删除文件文件或图片 /// /// 当前文件的路径 /// 是否删除成功 public static bool FilePicDelete(string path) ...{ bool ret = false; System.IO.FileInfo file = new System.IO
2008-01-11 11:53:00
492
原创 处理图片
/**//// /// Resize图片(不成功返回null) /// /// 原始Bitmap /// 新的宽度 /// 新的高度 /// 处理以后的图片 public static Bitmap ResizeImage(Bitmap bmp, int newW, int newH) ...{ try .
2008-01-11 11:26:00
517
原创 导出excel
private void ExportExcel(System.Data.DataTable ds, string strExcelFileName) ...{ object objOpt = Missing.Value; Excel.Application excel = new Excel.Application();
2008-01-11 11:02:00
537
原创 打开一个文件
if (File.Exists(string.Format("{0}/{1}", System.Windows.Forms.Application.StartupPath, "入库明细表.xls"))) System.Diagnostics.Process.Start(string.Format("{0}/{1}", System.Wind
2008-01-11 11:00:00
495
原创 统计文件夹大小
private long GetFilesSize(String path) ...{ DirectoryInfo directoryInfo = new DirectoryInfo(path); long length = 0; foreach (FileSystemInfo fsi in directoryIn
2007-11-19 10:20:00
623
转载 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组
通用版本(不依赖任何类库)function GetCheckBoxListValue(objID)...{ var v = new Array(); var CheckBoxList = document.getElementById(objID); if(CheckBoxList.tagName == "TABLE") ...{ for(i=0;iChe
2007-09-15 09:38:00
1995
原创 获取repeater中的控件
foreach (RepeaterItem item in rptCustomer.Controls) ...{ if (item.ItemType == ListItemType.Item) ...{ item.FindControl("btnDelete").Visible =
2007-09-03 14:34:00
849
转载 网站验证码
private void Page_Load(object sender, System.EventArgs e) ...{ this.CreateCheckCodeImage(GenerateCheckCode()); } Web 窗体设计器生成的代码#region Web 窗体设计器生成的代码 override protected void On
2007-08-29 16:13:00
581
原创 VS2005常用快捷键
Shift+Alt+Enter: 切换全屏编辑 Ctrl+B,T / Ctrl+K,K: 切换书签开关 Ctrl+B,N / Ctrl+K,N: 移动到下一书签 Ctrl+B,P: 移动到上一书签 Ctrl+B,C: 清除全部标签 Ctrl+I: 渐进式搜索 Ctrl+Shift+I: 反向渐进式搜索 Ctrl+F: 查找 C
2007-08-28 15:34:00
500
原创 挂起绑定
otherPhonePrefixBindingSource.SuspendBinding();//上面是挂起,下面是恢复过来,操作的是DataGridViewotherPhonePrefixBindingSource.ResumeBinding();
2007-08-02 17:15:00
601
原创 WinForm中打开web页面
System.Windows.Forms.Help.ShowHelp(this, url);System.Diagnostics.Process.Start("IExplore.exe", url);
2007-07-28 16:05:00
1125
转载 DataGridView同时删除多行
private void button1_Click(object sender, EventArgs e) ...{ this.hostTableAdapter.Fill(this.hostScanDataSet.host); } private void button2_Click(object sender, EventAr
2007-07-28 15:47:00
1127
原创 Return 键转 Tab 键功能代码
using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.ComponentModel;namespace ControlLibrary...{ /**//// /// 为此项目定制的 MaskedTextbox,具有 Return
2007-07-20 16:16:00
903
转载 读取枚举类中的值
/**//// /// 获得枚举的值 /// /// public static IList ListType() ...{ ArrayList list = new ArrayList(); foreach (int i in Enum.GetValues(typeof(O
2007-07-16 12:56:00
911
原创 随机生成16位数字
/**//// /// 生成一个16位数字随机数 /// /// public string ReturnRandomStr() ...{ Random r = new Random(System.Environment.TickCount); str
2007-07-11 17:15:00
10896
1
转载 VS2005发送电子邮件
/**//// /// 发送邮件 /// /// /// /// /// public static bool SendEmail(string sendTo, string subject, string body) ...{ SmtpSection cfg = NetSectionGroup.GetSectio
2007-07-11 13:40:00
851
操作OPC 需要的DLL
2009-04-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人