Hi,
Thanks for your prompt reply. I've got it working now.
I've inherited this project from a colleague who has left the company so I'm stumbling around in the dark a bit, figuring out how to use this and also what's been done and what hasn't.
Here is a truncated snippet of what I now have just in case anyone else has a similar problem. The commented variables are declared earlier just included them for completeness. Also this is just the pdf case other file types are handled differently.
' Added new reference to top of page
' Imports ceTe.DynamicPDF.Merger
'Dim sOutputPath As String="C:\PdfConv\pdf\merged.pdf"
'Dim sNativePDFFilePath As String="C:\PdfConv\pdf\native.pdf"
If File.Exists(sOutputFilePath) = True Then
Dim sTemp As String = sOutputFilePath.Replace(".pdf", "_temp.pdf")
File.Move(sOutputFilePath, sTemp)
Dim MyDocument As MergeDocument = MergeDocument.Merge(sTemp, sNativePDFFilePath)
MyDocument.Draw(sOutputFilePath)
File.Delete(sTemp)
Else
' This is the first file rename it.
File.Copy(sNativePDFFilePath, sOutputFilePath, True)
End If
File.Delete(sNativePDFFilePath)
Cheers Allan