I'm trying to run the command "36516 - SignDocument", but it always shows "Command is currently disabled" in my app. In the full demo, this command works correctly.
I read this topic
but unfortunately I couldn't make it work. My code is below. I'm using Delphi 5 and Windows 10.https://forum.pdf-xchange.com/viewtopic.php?f=36&t=16526&p=67217&hilit=sign#p67217
Code: Select all
Result := False;
try
//=> This point my doc is open
// Viewer.OpenDocument(AArquivo, '', DocId, 0); => I tried open, but the message continue
Viewer.SetProperty('Commands[#36516].State', 'OnLine', 0); //Habilitar Assinatura Digital...
Viewer.DoVerb('', 'ExecuteCommand', 36516, EmptyParam, 0);
Result := True;
except
on ex: EOleException do
ShowErrorMessage(Viewer, ex.ErrorCode);
end;
Best regards
Claudemir
Instituto das Cidades Inteligentes