dpdf merger is not working

dpdf merger is not working

Forum member · Nov 27, 2012
Hi, I have recently download DPDF.20 version 7.0.1.20 (trial version) to merge more than one pdf files into one. I have downloaded and when I add its dll as reference, everything looks fine, but when I run the application , it shows error ”Type ‘ceTe.DynamicPDF.Document is not defined. I am using the following code in vb.net using 4.0 .Net frame work vs2010 , using 32 bit machine in windows 7. Please advise what could be the reason that on runtime it could not recognize the dll. Code is Imports ceTe.DynamicPDF.Merger Imports ceTe.DynamicPDF.Document Imports System Dim MyDocument As ceTe.DynamicPDF.Document = New ceTe.DynamicPDF.Document MyDocument = MergeDocument.Merge("C:\pdf1.pdf", "C:\pdf2.pdf") ' Dim MyDocument As MergeDocument = MergeDocument.Merge("C:\pdf1.pdf", "C:\pdf2.pdf") MyDocument.Draw("C:\Merged Output.pdf") On run time I get message Error 35 'MergeDocument' is not declared. It may be inaccessible due to its protection level. C:\Users\mmughal\Desktop\pdfmerger\WindowsApplication1\WindowsApplication1\Module1.vb 26 22 WindowsApplication1 Error 34 Type 'ceTe.DynamicPDF.Document' is not defined. C:\Users\mmughal\Desktop\pdfmerger\WindowsApplication1\WindowsApplication1\Module1.vb 25 27 WindowsApplication1 Thanks Mohsin

Re: dpdf merger is not working

Support · Nov 28, 2012
Hello, You are getting error most likely because your application is not referenced with the DynamicPDF dll file correctly. Please make sure that you are adding the reference to the DynamicPDF dll file depending on the version of the .NET framework targeted dynamically and this will work for you. You can refer documentation on referencing DynamicPDF assembly here . Also try running the sample examples downloaded with the product download and import the correct namespace of our DynamicPDF API to access the classes and methods of our DynamicPDF API. Thanks, ceTe Software Support Team.