PDF is not Merging. Please help me

Hi  I have a windows applicatoin which is developed using vb.net and i am trying to Attach or Combine 2 pdf's into one . It works for once or twice and after that it will not attach any pdf . The first pdf stays as such.
The vb.net code is below. Please help me what was causing the problem and any possible solution.
Code:
Dim 
sFileName As String = ""
sFileName =
"doc1.pdf"
FileCopy(sFileName,
"Temp.pdf") 
Me.wbReport.Navigate("Temp.pdf") 
'Get File Name
Dim sFileAttach As String = ""
With Me.OpenFileDialog1.DefaultExt =
"PDF"
.Multiselect =
False
.Title =
"Select file to attach"
.FileName =
.Filter =
"Adobe PDF Files (*.pdf)|*.pdf"
.ShowDialog()
sFileAttach = .FileName
End With 
If sFileAttach = "" Then 
Exit Sub 
End If 
Dim AcroApp As Object = CreateObject("AcroExch.App")
' ACRODISTXLib.PdfDistiller6
Dim InsertPDDoc As Object = CreateObject("AcroExch.PDDoc") 
Dim RptPDDoc As Object = CreateObject("AcroExch.PDDoc")
Try
RptPDDoc.InsertPages(
CType(RptPDDoc.GetNumPages, Integer) - 1, InsertPDDoc, 0, CType(InsertPDDoc.GetNumPages, Integer), False)
Catch ex As
ExceptionMsgBox(
"Error Attaching Documents. Documents were not attached.") 
End Try
Nothing
InsertPDDoc =
Nothing
Me.wbReport.Navigate(sFileName)
Any Suggestions ????
Thanks in Advance for the help.
RptPDDoc.Save(1, sFileName)
RptPDDoc.Close()
AcroApp.Exit()
RptPDDoc =
InsertPDDoc.Close()
AcroApp.Hide()
RptPDDoc.Open(sFileName)
InsertPDDoc.Open(sFileAttach)

suadfromshkoder wrote:
...i bought a used iphone 4 ...
The Apple ID and Password that was Originally used to Activate the iDevice is required.
If you cannot get this information from the seller
Removing a device from a previous owner’s account
you need to return the Device for a refund, as you will not be able to re-activate it.

Similar Messages

Maybe you are looking for

  • Wireless Print Server and Macintosh

    Hello: I am using a Linksys Wireless Print Server WPS54GU2. I have a HP LaserJet 1012 printer hooked up to it. i have a iMac and a Dell Windows PC. From the dell Windows PC, the wireless printing is working fine to the laserjet, however i just bought

  • Why do we need IMP and Exchange servers integration?

    According to this document, Microsoft Exchange integration with Cisco Unified Presence allows users to incorporate their calendar/meeting status in Microsoft Outlook into their availability status on Cisco Unified Presence. http://www.cisco.com/en/US

  • Session value to JavaBean

    i have a value and set it to session. I can get it by session.getAttribute(" xxx") at another jsp page, Can I pass the value into a java class to perform some task ?

  • ~/Library crashed by multiple logins?

    Hi, I am running a 10.4.7 Server and have a bunch of users that can login from different machines, even at the same time. My main question: Is this a possible cause for a crash in ~/Library/* files when a user logs in from several machines and works

  • Blackmagic playback

    Dear ,  i have a blackmagic declink studio on my hp workstation Z600   and im working on a premiere cs project and wanted to watch on a external monitor , when going to prefernces playback setting blackmagik isnt appearing as an option but in audio h