How to use PDF Form Filler SDK from VB6 to fill PDF forms?

Hi

I eventually got the PDF Form Filler SDK working in VB6 using a reference to VeryPDFFormEXECOM and then:

Dim Pdf as New pdfformcom

I could then use the SDK with commands like:

id = Pdf.com_PDFForm_Alloc()

Is this the correct way to use the control? From the Install Zip, which are the important files to make it work on another machine?

Sorry for the questions in email but I am looking to buy and got no response from the Support.

Regards
Customer
-------------------------------------------

>>I could then use the SDK with commands like:
>>id = Pdf.com_PDFForm_Alloc()
>>Is this the correct way to use the control?

Yes, this is the correct way to use the control, please look at an entire C# example at below,

using VeryPDFFormCOM;

void PDFFormFilling1()
{
        VeryPDFFormCOM.pdfformcom pdfform = new VeryPDFFormCOM.pdfformcom();
       
        int id;
        int nRet = -1;
        string szOutPDF1;
        string szOutPDF2;
        string szPDFFile;
        szPDFFile = GetModulePath("example-fw9.pdf");
        szOutPDF1 = GetModulePath("out1.pdf");
        szOutPDF2 = GetModulePath("out2.pdf");
       
        id = pdfform.com_PDFForm_Alloc();
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-1", "1 Test for Name");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-2", "1 Test for Business Name");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-3", "1 Test for f1-3");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-4", "1 Test for f1-4");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-5", "1 Test for f1-5");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-6", "1 Test for f1-6");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-4", "Off");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-5", "Off");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-1", "Yes");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-2", "Yes");
        nRet = pdfform.com_PDFForm_Apply(id, szPDFFile, szOutPDF1, 0);
        nRet = pdfform.com_PDFForm_ClearFields(id);
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-1", "2 Test for Name");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-2", "2 Test for Business Name");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-3", "2 Test for f1-3");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-4", "2 Test for f1-4");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-5", "2 Test for f1-5");
        nRet = pdfform.com_PDFForm_SetTextField(id, "f1-6", "2 Test for f1-6");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-4", "Off");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-5", "Off");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-1", "Yes");
        nRet = pdfform.com_PDFForm_SetCheckBox(id, "c1-2", "Yes");
        nRet = pdfform.com_PDFForm_Apply(id, szPDFFile, szOutPDF2, 1);
        nRet = pdfform.com_PDFForm_Free(id);
}

>>From the Install Zip, which are the important files to make it work on another machine?

You need deploy following files to a new machine in order to PDF Form Filler SDK to work,

cximagecrt.dll
imgconv.dll
msvcr110.dll
pdfform.dll
pdfformcom.dll
pdfformcom.exe

VeryPDF

School See Also:

Use of VeryPDF PDF Form Filler SDK with VBA code from MS Office products to fill PDF forms dynamically
https://www.verypdf.com/wordpress/201512/use-of-verypdf-pdf-form-filler-sdk-with-vba-code-from-ms-office-products-to-fill-pdf-forms-dynamically-42113.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!