简体   繁体   English

在VB6中使用iText

[英]Using iText in VB6

We have a legacy app that is written in VB6 which we would like to use iText with. 我们有一个用VB6编写的旧版应用程序,我们希望将其与iText一起使用。 Is there an iText DLL that can be included in a VB6 application for creating PDF's? 是否可以在VB6应用程序中包含用于创建PDF的iText DLL?

Thanks in advance 提前致谢

Alan Liddle 艾伦·里德尔

iTextSharp doesn't have a COM interface . iTextSharp没有COM接口 The way you can use the DLL with VB6 is using a middleware project. DLL与VB6配合使用的方式是使用中间件项目。

First create a .NET project with COM interoperablity. 首先创建一个具有COM互操作性的.NET项目。 For example: http://www.geeksengine.com/article/create-dll.html 例如: http : //www.geeksengine.com/article/create-dll.html

Next, use this project for link and use the iTextSharp DLL. 接下来,使用该项目进行链接并使用iTextSharp DLL。

The idea is that every PDF feature you need to do in your VB6 project will use that VB.NET project (COM interoperable) you created before. 这个想法是,您在VB6项目中需要做的每个PDF功能都将使用您之前创建的VB.NET项目(COM可互操作)。

Recap: 概括:

VB6 Project ===> VB.NET Project ===> iTextSharp VB6项目===> VB.NET项目===> iTextSharp

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM