通過(guò)wPDF控件,您可以在您的VC,VB以及VBS工程中創(chuàng)建PDF文檔。其中DLL文件形式的wPDF控件,主要用于協(xié)助程序設(shè)計(jì)者在其應(yīng)用程序中添加對(duì)PDF文件的支持。
Create PDF files from your VC, VB or VBS project. The wPDFControl DLL was created to make it easy for programmers to add PDF support to their application.
通過(guò)wPDF,您可以在您的VC,VB以及VBS工程中創(chuàng)建PDF文檔。在wPDF控件包中,包含一個(gè)可作為對(duì)象插入的OCX控件和一個(gè)動(dòng)態(tài)連接庫(kù)文件形式的DLL控件。如果您不想采用wPDF OCX,您也可以在許多程序設(shè)計(jì)語(yǔ)言中直接動(dòng)態(tài)連接DLL文件形式的wPDF控件。
在DLL形式的wPDF控件中包含著一個(gè)ActiveX控件,它可以引導(dǎo)程序加載整個(gè)wPDF DLL控件,同時(shí)它還提供了相應(yīng)的程序接口。這個(gè)ActiveX控件可以在一些特定語(yǔ)言中使用,比如Visual Basic等,這類語(yǔ)言很難實(shí)現(xiàn)打開(kāi)PDF控件所需的調(diào)回功能。我們不推薦在C或者其他同類語(yǔ)言中使用這個(gè)ActiveX控件,因?yàn)檫@類語(yǔ)言有其自身已定義的實(shí)現(xiàn)調(diào)回功能的程序,而這種調(diào)回功能與ActiveX控件所要求的調(diào)回功能有一定差異。
如果您要在您的應(yīng)用程序中應(yīng)用wPDF控件,首先您要加載wPDF DLL控件,并初始化。我們已經(jīng)預(yù)先創(chuàng)建了一個(gè)頭文件,通過(guò)該頭文件,您就可以在C語(yǔ)言中自動(dòng)加載該DLL文件,同樣它也適用于大多數(shù)程序編輯都要采用的C++語(yǔ)言。
我們并不推薦在程序中鎖定wPDF DLL控件的文件路徑,因?yàn)槿绻鸇LL文件不存在指定目錄,那么將會(huì)導(dǎo)致程序發(fā)生錯(cuò)誤。當(dāng)您初始化wPDF DLL控件后,您就可以運(yùn)行它來(lái)輸出相應(yīng)的PDF文件。
在wPDF控件包中添加了支持.NET形式的控件。它是對(duì)C#支持的控件而發(fā)展的,并且可以使用道具,標(biāo)記,事件和流。
wPDFControl lets you create PDF files from your VC, VB or VBS project. It comes with an OCX which acts as an optional interface and a DLL. Many programming languages allow you to load the DLL directly in this case the OCX
is not required.
The DLL comes with an ActiveX which serves to load the PDF engine DLL and provides an interface to it. The ActiveX can be used in languages such as Visual Basic, where it is difficult to use the callback function required for the PDF engine. We do not recommend using the ActiveX in C or other languages which allow callback procedures to be defined.
To use PDFControl in your application you first have to load the DLL and initialize it. We have created a header file which makes it easy to do this in C and have also provided a C++ class which does most of the tasks automatically.
We do not recommend static binding since this would cause errors if the DLL is not found. After you have initialized the DLL you can execute the function to start the output.
.NET support wrapper - developed in C# and uses properties, flags, events, streams.