我参考过这篇文章:
http://search.csdn.net/Expert/topic/2559/2559637.xml?temp=.1949121
但是经这么转换后形成的是com组件,在.net里就不能被使用了!谁有好办法,谢谢!
http://search.csdn.net/Expert/topic/2559/2559637.xml?temp=.1949121
但是经这么转换后形成的是com组件,在.net里就不能被使用了!谁有好办法,谢谢!
解决方案 »
- 在后台打开Word,插入html文本,如<b>asdf</b>
- 问一下数据库部署和网站发布问题
- asp.net2.0 第一次的执行速度慢,但是执行过后,过了几分钟再执行速度又很慢
- 请大家建议:aspx采用什么样的web打印解决方案比较合适?
- 新建项目时的错误,求高手解决下,急啊!
- 给100分求一个水晶报表图片显示
- 在vs2008中F5运行程序禁用脚本调试
- 请问怎么在后台自己写代码,不用datagird绑定,然后前台显示一个列表啊
- DataList 动态更新问题,和数据显示问题
- 麻烦:请问怎样在组件里面使用httpRequest和HttpResponse对象??
- access做后台数据库,如何做事务处理?
- javascript中创建的ActiveX对象需要释放吗
2) Goto to Project Properties->ConfigurationProperties->build, check the Register for Com Interop checkbox. This creates the COM wrapper for your .NET assembly and hance need not use regasm.
3) Write whatever code you want, expose the classes publicly, expose the properties, functions you want publicly.
1) In your .net project, select project/properties/configuration properties
select the build tab and check the box "Register for COM Interoperability"In the .NET class add the following attributes for VB.NET:
Declaration:
Imports System.Runtime.InteropServicesAbove the class definition add the following attribute:
<comClass()>Above each method call add the following attribute:
<comVisible(True)>Build copmonent using RegAsm.exe:
RegAsm dllfilename.dll /codebase