Capture signature and save it to external file (1 Viewer)

JohnPapa

Registered User.
Local time
Today, 07:50
Joined
Aug 15, 2010
Messages
647
I have developed a VB.net Forms application and would like to be able to capture a user's signature, store it in an external file as part of a pdf file and subsequently be able to view the pdf file.

There are several examples in C#, using inkCanvas, but was unable to find something in VB.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 05:50
Joined
Feb 19, 2013
Messages
14,740

JohnPapa

Registered User.
Local time
Today, 07:50
Joined
Aug 15, 2010
Messages
647
have you tried using a code converter like this one?

converted the C# code on this site https://www.codeproject.com/articles/158339/signature-box-that-makes-the-signature-look-right

Converted code looks OK to me but not tested
I have used the converter. I just found it strange that no VB code example was available.
 

isladogs

CID VIP
Local time
Today, 05:50
Joined
Jan 14, 2017
Messages
16,426
Try this:
 

JohnPapa

Registered User.
Local time
Today, 07:50
Joined
Aug 15, 2010
Messages
647
have you tried using a code converter like this one?

converted the C# code on this site https://www.codeproject.com/articles/158339/signature-box-that-makes-the-signature-look-right

Converted code looks OK to me but not tested
I had a look. I could not find a beginning or an end to the article and the download is a .dll. Not very useful in its present form, to me at least.
 

isladogs

CID VIP
Local time
Today, 05:50
Joined
Jan 14, 2017
Messages
16,426
I have implemented it in VBA for the desktop application.
I am trying to implement the same functionality in the Cloud version which uses VB.net

Sorry I haven't done that so can't help.
I use code to email the collected signature to 'head office' instead
 

isladogs

CID VIP
Local time
Today, 05:50
Joined
Jan 14, 2017
Messages
16,426
No.
I save signatures as .GIF images for attachment to email
Doing that means no need to have an internet connection as such
 

sonic8

AWF VIP
Local time
Today, 06:50
Joined
Oct 27, 2015
Messages
619
Do we need to use the .xaml file or can everything be handled with VB code?
The question is answered in the text itself:
You can access all WPF features from procedural code. Follow these steps to create a "Hello Ink World" application for WPF that doesn’t use any XAML at all.

Regarding the InkCanvas control, I recommend you investigate if and how a WPF component can be used in a WinForms application.
 

Users who are viewing this thread

Top Bottom