PDF Merge using an Open File Dialog

According to your sample, the source for the merge is an array. Also in your sample, your array is separated by a comma.

I'm trying to use the Merge feature dynamically, using the Open File Dialog, but it just hangs, and then eventually gives me a CLR error.

Here is the code I'm using:
Dim sFileList As String()
Dim ofd As New OpenFileDialog
ofd.Filter = "PDF Files (*.pdf)|*.pdf"
ofd.Multiselect = True
If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
sFileList = ofd.FileNames
destFilename = txtDestination.Text & "\" & txtFilename.Text & ".pdf"
destFilename = destFilename.Replace("\\", "\")
PDFDocument.Merge(destFilename, sFileList)
End If

I know in the real world, the use for this method would need to be dynamic, like what I'm doing, so, how can I get this to work?

1 Reply

AD Administrator Syncfusion Team March 1, 2007 12:50 PM UTC

Hi Augustwind,

Thanks a lot for your code Snippet.

I created a sample using your code snippet but I am afraid that I was not able to reproduce the issue.

With this I have attached a sample for your reference.

Could you please try to modify the sample and send back to us, so that I can reproduce the issue. This will help me to analyze this issue further.

Thank you for your interest in Syncfusion products.

Best Regards,

Bhuvaneswari.


PDF_Merge.zip

Loader.
Up arrow icon