通過wPDF控件,您可以在您的VC,VB以及VBS工程中創建PDF文檔。其中DLL文件形式的wPDF控件,主要用于協助程序設計者在其應用程序中添加對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.
通過wPDF,您可以在您的VC,VB以及VBS工程中創建PDF文檔。在wPDF控件包中,包含一個可作為對象插入的OCX控件和一個動態連接庫文件形式的DLL控件。如果您不想采用wPDF OCX,您也可以在許多程序設計語言中直接動態連接DLL文件形式的wPDF控件。
在DLL形式的wPDF控件中包含著一個ActiveX控件,它可以引導程序加載整個wPDF DLL控件,同時它還提供了相應的程序接口。這個ActiveX控件可以在一些特定語言中使用,比如Visual Basic等,這類語言很難實現打開PDF控件所需的調回功能。我們不推薦在C或者其他同類語言中使用這個ActiveX控件,因為這類語言有其自身已定義的實現調回功能的程序,而這種調回功能與ActiveX控件所要求的調回功能有一定差異。
如果您要在您的應用程序中應用wPDF控件,首先您要加載wPDF DLL控件,并初始化。我們已經預先創建了一個頭文件,通過該頭文件,您就可以在C語言中自動加載該DLL文件,同樣它也適用于大多數程序編輯都要采用的C++語言。
我們并不推薦在程序中鎖定wPDF DLL控件的文件路徑,因為如果DLL文件不存在指定目錄,那么將會導致程序發生錯誤。當您初始化wPDF DLL控件后,您就可以運行它來輸出相應的PDF文件。
在wPDF控件包中添加了支持.NET形式的控件。它是對C#支持的控件而發展的,并且可以使用道具,標記,事件和流。
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.