I am using the PDF-XChange Viewer ActiveX Control in an MS Access form, and was having some trouble to get the license entered in such a way that it would remove the "demo" watermarks.
It turns out that if the ActiveX control on your form is in a hidden state (i.e. control.Visible=False), it will error if you try to feed it the registration key. What's more, if you hide it after feeding it the registration key, the next time you make it visible, it will have lost the registration info and you will have to send the string again to it.
So if you like to keep the control hidden until it is ready to be used, the following code shows a sample of what would need to be done:
Code: Select all
Dim sLicense as String, sFile as String sLicense = " -- complete registration key goes here -- " sFile = "X:\Folder\Filename.PDF" ' PDFX is the name of the control on the form PDFX.Visible = True PDFX.SetDevInfo sLicense, "" PDFX.src = sFile ' additional commands ...