Open Digital Signatures Wizard - InfoPath Dev
in

InfoPath Dev

Open Digital Signatures Wizard

Last post 05-01-2006 07:57 AM by Agni Jonnalagadda. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-26-2006 08:46 PM

    • tobi
    • Not Ranked
    • Joined on 11-16-2005
    • Posts 6

    Open Digital Signatures Wizard

    Does anybody know if it is possible to open the digital signatures wizard to sign a specific section by using a control other than the default "click here to sign this section" displayed under the section? My preferred solution would be to use a button ... anybody has a solution / suggestions?

    Thanks a lot!
    Tobias
  • 04-27-2006 10:40 AM In reply to

    Re: Open Digital Signatures Wizard

    Hi Tobias,

    Welcome to the InfoPath Dev Forums!

    You can use a button with code behind it that calls:

    XDocument.UI.ShowSignatureDialog();

    But this doesn't specify a particular section.
  • 04-27-2006 05:19 PM In reply to

    • tobi
    • Not Ranked
    • Joined on 11-16-2005
    • Posts 6

    Re: Open Digital Signatures Wizard

    Thanks Greg. Works perfectly and the wizard lets user select the section that they want to sign (eg. initiator / approver) >> Acceptable workaround.

    Does anybody know if the section can be predefined in the code when calling the wizard?
  • 04-28-2006 03:18 AM In reply to

    Re: Open Digital Signatures Wizard

    Hi Tobias,
    Here is how you can select the block and sign the same.
    SignedDataBlock oSignatureBlock = thisXDocument.SignedDataBlocks["BLOCKNAME"];
    oSignatureBlock.Sign();

    Reply back if you see any issues here.
  • 05-01-2006 01:45 AM In reply to

    • tobi
    • Not Ranked
    • Joined on 11-16-2005
    • Posts 6

    Re: Open Digital Signatures Wizard

    Thanks for your help Agni.

    Tried your code but get error messages. Have to say that I'm not really a coder so it might be something really stupid...

    Anyway I put the code that you supplied into the function that is called by the onClick button event. I replaced BLOCKNAME with the section that shall be signed and I get error: Expected ';'

    SignedDataBlock oSignatureBlock = thisXDocument.SignedDataBlocks["BLOCKNAME"];
    oSignatureBlock.Sign();

    I put a ";" after SignedDataBlock and can now open the form. Clicking the button gives me error 'SignedDataBlock' is undefined.

    Would be great if you have an idea what I did wrong!

    Thanks!
    Tobi

  • 05-01-2006 07:57 AM In reply to

    Re: Open Digital Signatures Wizard

    BLOCKNAME - should be the name(name that you have given when creating the signature blocks) of the block that you are signing.

    I gave "BLOCKNAME" as an example.
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.