2010-02-11 12:09:46
不知哪一年起说要做工作室主页。
不知哪一年起发现迟迟做不出来。
不知哪一年起说暂定2010年完成。
2010已经到了,我们来实现诺言了。
View Mode: Normal | Article List
1 | 2 | 3 | >

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Providers\Microsoft.Jet.OLEDB.4.0

NOTE: With the DisallowAdHocAccess property set to 1, SQL Server does not allow ad hoc access through the OPENROWSET and the OPENDATASOURCE functions against the specified OLE DB provider. If you try to call these functions in ad hoc queries, you will receive an error message similar to:

Ad

...

Read More...

用VS2005开发COM 组件

[ 2010-02-11 12:34:04 | Author: sunrise_chen ]

1, 添加引用
using System.Runtime.InteropServices;

2, 在类名前加上
[ProgId("Shanger.Sunrise")] //Com调用的名字
[Guid("CAF9E079-7A4F-46ac-9516-9A5CCAB41ABD")]  //设置GUID
Guid 可以在 工具-> 创建 Guid里得到

3, 设置Com可见
双击 "解决方案管理器>项目名>Properties", "应用程序">"程序集信息">"使程序集Com可见"
.或者.
AssemblyInfo.cs里修改: [assembly: ComVisible(true)]
效果一样的.

4. 本机调试(可选)
"解决方案管理器>项目名>Properties", "生成"标签里选"为 COM Interop 注册"

5. 部署
还没做,以后再讲.

...

Read More...

Introduction

The server-side data binding techniques that were introduced in ASP.NET version 1.0 revolutionized the way developers build pages that access data. No longer was there a requirement for complex and lengthy code sections that build up HTML tables or lists of values. However, using ASP.NET 1.x, you still have to write code to perform the data access and expose the data to the

...

Read More...

Select data from an Excel sheet in MSSQL

[ 2010-02-11 12:32:20 | Author: sunrise_chen ]
select *
from openrowset('Microsoft.Jet.OLEDB.4.0'
 ,'Excel 8.0;HDR=YES;IMEX=1;DATABASE=d:\folder\excel.xls',Sheet1$)
 
-------NOTE------
Setting IMEX=1 tells the driver to use Import mode. In this state, the registry setting ImportMixedTypes=Text will be noticed. This forces mixed data to be converted to text. For this to work reliably, you may also have to modify the registry setting,
...

Read More...
<%@ Language=VBScript %>
<%
' FTP via ASP without using 3rd-party components
' Ben Meghreblian 15th Jan 2002
' benmeg at benmeg dot com / http://benmeg.com/code/asp/ftp.asp.html
'
' This script assumes the file to be FTP'ed is in the same directory as this script.
' It should be obvious how to change this (*hint* change the lcd line).
' You may specify a wildcard in ftp_files_to_put (e.g. *.txt).

' 
...

Read More...

网页制作之在线视频播放代码

[ 2010-02-11 12:27:05 | Author: sunrise_chen ]
    站长说明:很多朋友向我问起如果实现视频在线播放功能,我现在把一些不同格式的视频文件的网页代码总结如下,希望对大家用所帮助.使用方法说明:你应该把下面代码中的视频路径换成与你网站中内容相适应的相对路径或者绝对路径,播放器的窗口大小可以修改高和宽的参数.
    1.avi格式

    <object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
    <param name="ShowDisplay" value="0">
    <param name="ShowControls" value="1">
    <param name="AutoStart" value="1">
    <param

...

Read More...

What a weird one.  I'm looking at the source for NDoc.Document.HtmlHelp2.Compiler.HtmlHelpFile.  It uses the Microsoft.mshtml interop Assembly to load an HTML file into the HTMLDocumentClass for easy parsing.

It's code looks like this (DOESN'T WORK):

private HTMLDocumentClass GetHtmlDocument( FileInfo f )

...

Read More...

JPivot易用性修改

[ 2010-02-11 12:26:07 | Author: 狰狞的微笑 ]
mondrianQuery TAG 修改

scriplet 输出MDX查询支持
修改 TLD文件中 mondrianQuery TAG 的 body-content 为JSP
修改 MondrianOlapModelTag 的父类 com.tonbeller.jpivot.tags.OlapModelTag
为其加入 doStartTag 方法,返回EVAL_BODY_BUFFERED,
使之在 getBodyContent 之前先对 scriplet 进行处理。
ex:public int doStartTag(){return EVAL_BODY_BUFFERED;}
1 | 2 | 3 | >