
.Net 生存
文章平均质量分 72
crabo
这个作者很懒,什么都没留下…
展开
-
.net下基于API封装的DirectUIHWND窗体访问
直接切入正题:1.添加引用. 项目->添加引用->C:/Progmme~1/MSN Messenger/msnmsgr.exe2. using MessengerAPI;声明:private MessengerAPI.MessengerClass msn;private MessengerAPI.IMessengerConversationWnd msnMsgWnd;3.Init里添加:msn =原创 2005-06-28 17:27:00 · 1228 阅读 · 0 评论 -
C#读取Excel文件数据
相当简单,Excel就像数据库,每个Sheet就是一个Table. Microsoft.Jet.OLEDB驱动.之后是DataReader循环,或DataSet处理都非常简单.HTTP://BLOG.youkuaiyun.com/CRABO/注意:数据类型的转换!!#region set connection string strConn = @"Provider=Microsoft.Jet.OLEDB.原创 2005-12-08 15:44:00 · 8255 阅读 · 1 评论 -
Reporting Services 图形/图表无法显示的解决方法
Reporting Services提供了非常丰富的接口和扩展,给开发人员以极大的施展空间.期间却也常有些莫名其妙的问题,今天就来搞定这臭名昭著的"图形/图表无法显示的rsStreamNotFound":流程:Reporting Services产生的是PNG图片.当IE Client请求报表时,1)创建Session, 2)返回HTML3)根据HTML,在该Session内创建新请求,已请原创 2005-12-20 15:48:00 · 1431 阅读 · 0 评论 -
Subscription & Schedule handling on Reporting Services API (Part 4)
Finally , lets see how it works!#region SetUIFromSubscription private void SetUIFromSubscription(string _SubscriptionID) { #region GetSubscriptionProperties ExtensionSettings extSettings; str原创 2006-01-04 11:27:00 · 1240 阅读 · 0 评论 -
Subscription & Schedule handling on Reporting Services API (Part 3)
The CORE: Schedule XML and the Schedule UI#region Schedule Settings #region GET private string GetMatchData() { #region time System.DateTime _startTime,_endTime; bool _hasEndTime=false; try原创 2006-01-04 11:15:00 · 1630 阅读 · 0 评论 -
Reporting Services报表订阅开发手札
订阅概述订阅是一种持续存在的请求,它在特定的时间或为响应某个事件而传递报表,然后以您定义的方式提交该报表。订阅提供了一种可替代按需运行报表的方法。按需运行报表要求您在每次查看报表时都执行特定的操作。相比之下,使用订阅则可以自动传递最新的报表。目前我们仅开发了”标准订阅”和”文件共享传递”,即由各个用户创建和管理并将报表生成到用户指定得UNC路径下.订阅创建/更新API 创建订阅API[C#] pu原创 2006-01-05 10:41:00 · 1514 阅读 · 0 评论 -
Subscription & Schedule handling on Reporting Services API (Part 2)
Now, you should set the UI.1)Render format2)OverWrite Mode3)Report Parameter inputbox#region Add Render Formats Control private void AddRenderFormats() { this.drp_RenderFormat.Items.Clear(); Mic原创 2006-01-04 11:10:00 · 1047 阅读 · 0 评论 -
Subscription & Schedule handling on Reporting Services API (Part 1)
Base on scott, http://www.odetocode.com/Articles/114.aspx#region FileShareSettings public Microsoft.ReportingServices.Interfaces.Setting[] FileShareSettings { get { Microsoft.ReportingService原创 2006-01-04 11:04:00 · 930 阅读 · 0 评论 -
SMIAS(东软短信网关系统SP接入接口) v2.1 协议C# 完整封装
05年就搞过这家伙, 4年后蓦然回首, 真的简单了太多。 所以,关键还是积累,积累,再积累。java版的调用看以前这篇: http://blog.youkuaiyun.com/crabo/archive/2005/07/20/429966.aspx C# 版本,目前的调用为:IWorker worker = new Worker("211.100.*.*",7890, "4****5", "*原创 2009-06-24 17:33:00 · 1254 阅读 · 0 评论 -
IPad上做开发——在线B/S开发表单
上一篇介绍过了通用列表的实现及效果。 而他的本质也是“在线开发”,包括:开发人员在线开发列表,用户在线定制列表。也可以说是让用户参与了开发。今天要介绍的是基于模板的“表单”开发。 表单的概念可以很广,但我这里仅是基于业务场景抽象后提炼模板,有多少模板,就可以实现多少类表单。请看下图: 树形结构即服务器的物理结构。 根路径可配置,且须配原创 2010-05-27 15:44:00 · 438 阅读 · 0 评论 -
C#将程序最小化到托盘
最小化很简单,但show,windowstate,activate使用顺序将使界面无法正常显示.share一下HTTP://BLOG.youkuaiyun.com/CRABO/#region Show/Hide private void menuShowHideCrabo_Click(object sender, System.EventArgs e) { if(this.Visible) {原创 2005-12-08 19:50:00 · 1395 阅读 · 0 评论 -
C#下载文件及取得Request的返回信息
习惯上可能总觉得提交页面请求,下载页面资源是项繁琐的工作. 其实也不然. 象springframework.net一丫的跟我说的:工程总是看起来比他实际的大:Phttp://blog.youkuaiyun.com/crabo/HttpWebRequest webRequest=null; WebResponse craboResponse = null;private void GetImage(){#re原创 2005-12-08 15:25:00 · 1368 阅读 · 0 评论 -
东软SMIAS Java API移动短信接入JUnit TestCase
package sms.test;import com.commerceware.cmpp.*;import junit.framework.TestCase;public class JFTest extends TestCase { protected void setUp() throws Exception { super.setUp(); } protected void tea原创 2005-07-20 14:48:00 · 865 阅读 · 0 评论 -
use Assembly to call a method
When using objectFactory,u may want to call a static method,but would not like to write a mass of interfaces to *Show* the method.Here,its a way.Code:using System.Reflection;try { Assembly asm =原创 2005-07-19 18:09:00 · 617 阅读 · 0 评论 -
东软SMIAS短信接入Java开发
package org.crabo.blog;import org.apache.log4j.Logger;import org.apache.log4j.PropertyConfigurator;import com.commerceware.cmpp.CMPP;import com.commerceware.cmpp.cmppe_deliver_result;import com.commer原创 2005-07-20 18:11:00 · 1225 阅读 · 0 评论 -
Localization in ASP.NET 1.1
http://www.dotnet247.com/247reference/msgs/11/56463.aspxMatt HooperMicrosoft ASP.NET Developer SupportYou can simply add assembly resource files (.resx files) to your projectand VS.NET will compile th原创 2005-07-26 14:35:00 · 608 阅读 · 0 评论 -
Localization/MasterPage in ASP.NET 1.1 with Spring.Net
1. Get spring.core/spring.web from sourceforges CVS2.Include Spring.Core,Spring.Web in your new Web App3.Change your Web.Config like:原创 2005-07-29 10:52:00 · 627 阅读 · 0 评论 -
"string to ByteArray" And "ByteArray to string" in dotNet
string YOUR_STRING = System.Text.Encoding.UTF8.GetString(YOUR_BYTE_ARRAY);byte[] YOUR_BYTE_ARRAY=System.Text.Encoding.UTF8.GetBytes(YOUR_STRING);原创 2005-12-01 09:43:00 · 649 阅读 · 0 评论 -
C#调用DLL实现图像文字识别(OCR)
请先下载http://asprise.com/product/ocr/index.php?lang=csharp 的SDK.里面提供了详细的OCR方法,如下:将发现图像框picbVeryfyCode里的文字和文本框.txtVeryfyCode.Text是一致的.数字识别率我碰到的几乎是100%http://blog.youkuaiyun.com/crabo/[DllImport("AspriseOCR.dll原创 2005-12-08 15:11:00 · 12603 阅读 · 5 评论 -
C#桌面应用中的多线程
桌面应用中,当向web请求资源是总是存在这样那样的问题,导致程序等待,在客户端看来是窗口"不刷新","没响应","反映很慢". 其实只要适当引入线程,用户体验会好很多.HTTP://BLOG.youkuaiyun.com/CRABO/注意:线程都设为全局变量,以便退出时正确的退出.1)用户点击按钮,用户窗体线程与实际逻辑进程剥离private void btnPoll_Click(object sender,原创 2005-12-08 15:38:00 · 1223 阅读 · 0 评论 -
C#随机生成中文姓名
中文姓名总由姓+名最成. 因为程序需要,顺手写了....主要是设置了百家姓数组.Copy就方便了http://blog.youkuaiyun.com/crabo/#region My Init System.Random rnd; string[] _crabofirstName=new string[]{ "白","毕","卞","蔡","曹","岑","常","车","陈","成" ,"程","池"原创 2005-12-08 15:00:00 · 2987 阅读 · 2 评论 -
C#通过webRequest保持在同一Session中Post数据
WebClient无疑是C# 中访问web最简易快捷的方法:PostData/DownloadFile 为众人所倾倒.但有些要求Session保持的情况,则WebClient鞭长莫及了.http://blog.youkuaiyun.com/crabo/定义全局变量:HttpWebRequest craboRequest=null;CookieContainer craboCookie = new Cookie原创 2005-12-08 15:16:00 · 3588 阅读 · 0 评论 -
IIS7下配置WCF的netTcpBinding
看起来很小的事情,居然还是废了我半个下午,把我彻底给郁闷了。 无论异常如何,就看看最终成果吧: 1. 先配置Client Bindings, 注意security mode=”None”. 方便切换, 我同时提供了两种Binding 2.配置Server Bindings. 注意PortSharing和SecurityMode 3. 现在要配置服务器了。 1.打开“服务管理器” “功能”选项,确认功能 “WCF激活”/“非HTTP激活”已经安装。原创 2010-06-03 16:07:00 · 744 阅读 · 0 评论