Hi,
I'm using DynamicPDF Merger and Generator for COM V5.x.
When i start this VB6 sample (of course DynamicPDF lib is referenced in my VB project)
Dim SourceDocument As DynamicPDF.Document
Private Sub Form_Load()
Source = "C:\Temp\TestDoc.pdf"
Set SourceDocument = New Document
SourceDocument.LoadPdf Source
end sub
i get a VB compiling error message in my IDE for the "SourceDocument.LoadPdf" statement (LoadPDF is highlighted by the IDE). It says "Compiling error" and "Error while loading a DLL".
All other DynamicPDF methods are working fine.
When i do the same in VB script even the LoadPDF statement works fine.
Source = "C:\Temp\TestDoc.pdf"
Set SourceDocument = CreateObject("DynamicPDF.Document")
SourceDocument.LoadPdf Source
Do have any idea for the strange behaviour with VB6 ?
Thanks i advance, Olaf
LoadPDF - Error in VB6 IDE
Re: LoadPDF - Error in VB6 IDE
Support · Jul 16, 2009Hello Olaf,
We are able to run the exact same code without any problem in VB6. Please make sure that you have the correct dlls registered in your system. Also try unregistering the dlls and register again, then make a new reference to the dll in your application. Below is the code we used.
Dim SourceDocument As DynamicPDF.Document
Private Sub Form_Load()
Source = "C:\Temp\fw9AcroForm_03.pdf"
Set SourceDocument = New Document
SourceDocument.LoadPdf Source
SourceDocument.DrawToFile "C:\Temp\vb6PDF.pdf"
End Sub
Thanks,
ceTe Software Support Team.
Re: LoadPDF - Error in VB6 IDE
Forum member · Jul 17, 2009Hello,
thanks !
Unregistering the dlls and register them again solved the problem.
Best regards, Olaf