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.
Unfortunately, activation email could not send to your email. Please try again.

PDF Merge using an Open File Dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

57189 Feb 27,2007 10:46 AM Mar 1,2007 07:50 AM Windows Forms 1
loading
Tags: PDF
Augustwind
Asked On February 27, 2007 10:46 AM

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 07:50 AM

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

CONFIRMATION

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.

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.

;