Access to digital signatures in host Word

Add-in Express™ Support Service
That's what is more important than anything else

Access to digital signatures in host Word
 
Jan Netrval




Posts: 6
Joined: 2004-09-08
Hello
I have problem. I would like to access to digital signatures in host app (MS word), but this feature is only in Word XP and higher.

Can you help me?
Posted 08 Sep, 2004 03:38:46 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hello Jan,

As far as I understand you need access to the Signatures property of WordXP._Document interface. You can use a code similar to the one below:

uses WordXP;

procedure TAddInModule.adxCommandBar1Controls0Click(Sender: TObject);
var
  XPDoc: WordXP._Document;
begin
  if (WordApp.Version = '10.0') or (WordApp.Version = '11.0') then
  begin
    XPDoc := WordApp.ActiveDocument as WordXP._Document;
    ShowMessage('Count = ' + IntToStr(XPDoc.Signatures.Count));
  end;
end;


Do you need the full source code of this example?

Sincerely,
ADX Support Team
Posted 08 Sep, 2004 06:21:06 Top
Jan Netrval




Posts: 6
Joined: 2004-09-08
Now is all OK

Thank you.
Posted 09 Sep, 2004 02:34:31 Top