设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1767|回复: 0
打印 上一主题 下一主题

[Access本身] 在access中使用net組件

[复制链接]
跳转到指定楼层
1#
发表于 2011-3-27 03:56:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式


http://www.access-programmers.co ... 31&d=1218830798
http://www.access-programmers.co ... 35&d=1218833184


This is an demo showing how to use .NET libraries to extend Access's functionality.

This was written with Access 2003, Visual Basic Express Studio 2005 (free) using Microsoft .NET framework 2.0.

The demo references a C# library IntX, which is an arbitrary precision library enabling operations on large numbers without limitations imposed by Long Integer or even 64-bit BIGINT (the only limitation is availability of computer's resource), and how it can be implemented within Access to enable saving and managing large numbers.

I've also included a .PPT which was used to showcase the demo as well as README to help people get a hang of it.

This is not the only way to do it, but hopefully the most simple way to implement such functionality.

NOTE:

To get the sample working, you need to put it to C:\ directory as the library's path is hardwired.

Also, you need to have 2.0 framework installed and register the library. To register, use the Command Prompt:


Code:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
regasm "C:\NET2Access Demo\IntX VB\BigIntX.dll" /tlb: "C:\NET2Access Demo\IntX VB\BigIntX.tlb" /codebaseYou can download framework 2.0 from MSDN for free as well.

NOTE:

If you are having problem with long names, verify that you are using cmd.exe, not COMMAND.COM (which is just present in Windows XP for backward compatibility). Alternatively, use this instead:

Code:
cd C:\WINDOWS\MICROS~1.NET\FRAMEW~1\V20~1.507
regasm C:\NET2Ac~1\IntXVB~1\BigIntX.dll /tlb: C:\NET2Ac~1\IntXVB~1
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-7 01:12 , Processed in 0.097040 second(s), 24 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表