However I am trying to add a digital signature to my application, I know how to do this and have created a sample application that signs the document correctly. However in my main application when I sign the document using the stadard PDFXchange command.
Code: Select all
Private Sub btnSign_Click(sender As Object, e As EventArgs) Handles btnSign.Click
executeCommand(Me.docPreview, "cmd.document.signatures.sign")
End Sub
Private Sub executeCommand(ByVal myViewer As AxPDFXEdit.AxPXV_Control, ByVal CommandAsString As String)
Try
Dim cmd As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find(CommandAsString)
Me.docPreview.Inst.ExecUICmd2(cmd.ID)
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
End Sub
As I said I have got this working in a sample project so I know there is nothing wrong with your command, however I am having a mightmare trying to identify why this is happending in my main application and was wondering if you have come across this issue, so that I might be able to focus my attention on some specific code?
Thanks in advance
Simon