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

  • Is it possible to change the select statment in a Materialized view.?

    I need to make this change on two instances. One instance is running on 10.2.3 and the other on 8.1.7. The business solutions team wants me to change the business logic and hence this change. To the best of my knowledge i know it is not possible. I w

  • Discrepancy between F.19 and F.05 on GR/IR accounts

    Hi, In my opinion, the documents reported as GNB (goods received not invoiced) in transaction F.19 should be exactly the same documents that are being revalued in F.05 using Open Items, GR/IR account, radio button on "Valuate GR/IR" accounts. By defi

  • Does Apple have any event for Black Friday this year?

    I'm planning on buying a Macbook Pro Retina this holiday season. I'm wondering if Apple are gonna have any event for this Black Friday as they usually have. Thanks.

  • IPhone Issues - Volume - Can't TXT to more than one contact??? - ....

    Don't get me wrong but there are a few major issues I have with the iPhone... First of all I was sitting in traffic today and got my first call on my new 8G iPhone. It wasn't very loud and I could barely hear my friend at all! I checked the volume an

  • Album Art Not Showing

    I clicked the option of having album art show to show on ipod and it still isn't, can any one give a suggestion? HP   Windows XP   iPod Video