PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB 19] DotNet integration with eSignLive
[WB 19] DotNet integration with eSignLive
Iniciado por guest, 31,oct. 2016 13:57 - 2 respuestas
Publicado el 31,octubre 2016 - 13:57
Hi

I want to integrate document signing into my application and are taking a look at esignLive.

They have a .NET component but besides loading the ,NET dll's into my webdev application I have no idea what I am doing.

There sample code in C# look like this:

PRIVATE static string apiUrl = "https://sandbox.esignlive.com/api";
// USE https://apps.esignlive.com/api FOR PRODUCTION
PRIVATE static string apiKey = "YOUR_API_KEY";
EslClient EslClient = new EslClient(apiKey, apiUrl);
FileStream fs = File.OpenRead("PATH_TO_YOUR_PDF");
DocumentPackage superDuperPackage = PackageBuilder
.NewPackageNamed("Test Package .NET")
.WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings())
.WithSigner(SignerBuilder.NewSignerWithEmail("signer.email@example.com")
.WithFirstName("Signer First Name")
.WithLastName("Signer Last Name")
.WithCustomId("Signer"))
.WithSigner(SignerBuilder.NewSignerWithEmail("your.email@example.com")
.WithFirstName("Your First Name")
.WithLastName("Your Last Name"))
.WithDocument(DocumentBuilder.NewDocumentNamed("sampleAgreement")
.FromStream(fs, DocumentType.PDF)
.WithSignature(SignatureBuilder
.SignatureFor("signer.email@example.com")
.OnPage(0)
.AtPosition(175, 165))
.WithSignature(SignatureBuilder
.SignatureFor("your.email@example.com")
.OnPage(0)
.AtPosition(550, 165))
)

.Build();

PackageId PackageId = EslClient.CreatePackage(superDuperPackage);
EslClient.SendPackage(PackageId);

In WebDev I have these properties under the .NET Assemblies.

Image was attached.

Can anybody help with creating the variable so that I can change the properties of:

NewPackageNamed
Withsettings
WithSigner

etc. etc.

Off course if somebody can suggest something better, faster, easier, cheaper to get and control the different signatures on documents it will also help.

Thanks in advance


Ericus Steyn
[attachment 2207 Capture.PNG]
Publicado el 01,noviembre 2016 - 22:06
hI eRICUS,

document signing is supported by both windev and webdev. In webdev there is even an example on getting the signature form the user.

It is native wx code an easy to grasp. So really no need for .net or webservices. You can do it yourself.

regards

Allard
Publicado el 02,noviembre 2016 - 15:53
Hallo Allard

But will you have all the features such as an audit trial of who signed, when, if multiple signatures are required, setting out placeholders on the document where people are supposed to sign etc. etc.

If Webdev only offer me a way for a user to make a scribble with a mouse instead of a proper signature I don't think that's the way to go.

Regards

Ericus