We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF Merge using an Open File Dialog

Thread ID:





57189 Feb 27,2007 03:46 PM UTC Mar 1,2007 12:50 PM UTC WinForms 1
Tags: PDF
Asked On February 27, 2007 03:46 PM UTC

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?

Administrator [Syncfusion]
Replied On 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,




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon