Quantcast
Channel: Steadlands
Viewing all 113 articles
Browse latest View live

Registering the integriSign DLL

$
0
0

 

In certain circumstances, you may wish to use an IntegriSign-enabled application on a PC that does not have IntegriSign installed. In this situation, the DLL files that are required to run IntegriSign will need to be registered on the PC in question. The files required are ESUtil.dll and esW25COM.OCX.

 

This process will only need to be done once, the first time your application is run. I recommend you place it under your Form_Load event.

 

If File.Exists(Environment.SpecialFolder.System & “\ESUtil.dll”) = False Then

File.Copy(Application.StartupPath & “ESUtil.dll”, Environment.SpecialFolder.System & “\ESUtil.dll”)

Process.Start(“regsvr32 /s ” & Application.StartupPath & “esW25COM.OCX”)

End If

The post Registering the integriSign DLL appeared first on
Steadlands.


Using the ePad in browsers other than Internet Explorer

$
0
0

 

While the main component of IntegriSign is ActiveX and therefore only designed to work with Internet Explorer, the WebSign (Java) sample that comes as part of IntegriSign’s SDK allows you to create web pages using IntegriSign that will work on other browsers.

 

IntegriSign WebSign SDK Java is only tested in Internet Explorer, but the signature capture works fine in Firefox or Chrome if a JRE is installed and enabled. In case of non-IE browsers all the required supporting files have to be manually installed on the client machine (in case of Internet Explorer these files are automatically installed using the ActiveX and CAB files). Also sample pages installed with the IntegriSign Desktop need to be changed a bit.

Please follow the instructions below to install the supporting files and run the sample page.

1. Install latest version of IntegriSign Desktop.
2. Navigate to *’WebSign SDK (Java)\Applet(Client)-IIS-ASP(Server)\SDK’* or *WebSign SDK (Java)\Applet(Client)-Java (Server)\SDK’ *folder depending on the web server (typically C:\Program Files\IntegriSign Desktop\SDKs\WebSign SDK (Java)\Applet(Client)-Java(Server)\SDK) and then open the file websignsup.cab with any of the standard zip utilities and extract the EsUtil.dll or SignPad.dll into Windows System 32 folder of client machine (typically C:\Windows\System32).
3. Then save the attached sample htm page in to one of the folders and copy the websignsunjvm.jar from above SDK folder into the same folder as the htm page and try running the sample in FireFox or Chrome browser. The sample demonstrates capture of signature and then extracting the signature string and assigning it to a hidden filed for submission to the server. Note the version of jar in applet tag of the attached sample be modified using the default sample page shipped.

For more information on Applet APIs you can refer to the developer guide, only the sample makes a difference for Firefox or Chrome. The rest of the information is common to IE and other browsers.

There is a known issue with the latest version of the Java Runtime Environment (JRE 1.7.0_51). This is because there have been changes made to the way Java permissions work. Where before it was not necessary, now the .jar file manifest requires a permissions attribute and data.

This will be fixed in future versions of IntegriSign, but in the meantime, a fix is available.

Please see this site for further details  Epad Support

The post Using the ePad in browsers other than Internet Explorer appeared first on
Steadlands.

Caring for my Signature Pad

$
0
0

 

ePads are very durable and will last for many years. Proper care and maintenance, however, will better guarantee the reliability and performance of your ePad over its lifetime.

The only periodic maintenance your ePadLink signature pad requires is to keep it clean. A dirty pad surface may interfere with moving your stylus smoothly across the surface and can make it hard to capture thumb- and fingerprints.

Users should be aware that they should just sign normally, with firm stylus pressure. Never use any object (such as a pen) to perform signing, always use the provided stylus.

Environmental:

-Never leave the pad exposed to the sun for long periods of time. If you keep the pad locked in a car on a hot day, leave a window cracked to help with ventilation and keep the pad in a carrying case or shaded area of the vehicle.

-Keep the ePad surface away from other objects – such as the USB connector. Do not allow objects to press against the signature pad area when storing or transporting the device.

To clean the pad, follow these guidelines:

-Use any mild liquid household cleaner or rubbing alcohol.
-Apply a small amount of cleaner to a soft, non-abrasive cloth and wipe the pad or sensor.
-Be sure to wipe all cleaner residue from the device.
-Allow the alcohol to evaporate normally.

CAUTION:

-Do NOT pour cleaner or alcohol directly onto the device. Apply the cleaner to a soft cloth first.
-NEVER use De-Natured Alcohol. This will damage the device.
-PREVENT any liquid from entering inside the unit.
-Be careful to not scratch the fingerprint sensor surface.

The post Caring for my Signature Pad appeared first on
Steadlands.

Welcome to the all-new Steadlands.com!!

$
0
0

 

Finally it is here, months in the making but we have eventually managed to spruce up our website from top to tail, and we think it looks great!

Keeping in mind the vast array of products we offer, and even vaster number of potential applications, we have applied a whole new layout build including the introduction of a brand new navigation and search refinement process, with view to delivering a cleaner, more intuitive user interface to our valued visitors.

Throughout the process of the rebuild we have endeavoured to arrive at an end product which provides the best customer experience we could possibly deliver. We hope you like the result and any feedback you have would gratefully accepted at info@steadlands.com

Happy browsing!

Mark – IT Sales Executive.

The post Welcome to the all-new Steadlands.com!! appeared first on
Steadlands.

‘If’ Statements on the X-Keys

$
0
0

 

Compatible with MacroWorks 3.1.

It is possible to configure your X-Keys device to be able to check to see if a specific application is running, and do something in that application. This does require some basic programming knowledge (Visual Basic .NET).

In MacroWorks, select the key you wish to use and hover the mouse over it. A tooltip will pop up giving you the key’s ID number. Go to Window > Script Code, and scroll down until you find the ‘Case’ line with your key number in it. For example, key 58 would have the Case line ‘Case 1058’.

Each Case is split into three parts – If, Else, and End If. This works in exactly the same way to any other If statement in Visual Basic .NET. As part of the If statement, you will need to use MW3.IsActiveWindow to determine if the active process is the one you want to manipulate with your X-Keys, and you will need the command MW3.WindowToFront for the Else part of the statement.

MW3.IsActiveWindow requires a variable to make it work – the name of the process you want to use. For example, for Microsoft Outlook, the required line would read:

If MW3.IsActiveWindow(“OUTLOOK”)

This is a Boolean variable which will return wither True, if Outlook is the active window, or False                                                if another window is active. If True, it will press on with the other commands in the If part of the statement, and if False, it will move on to the commands under Else.

MW3.WindowToFront requires a string containing the title of a window. For example, to bring an Outlook window to the front, this line would read:

MW3.WindowToFront(“Inbox – Microsoft Outlook”)

This would bring the Outlook window to the front, providing Outlook was open on the Inbox screen. Any other folder apart from Inbox would require its own WindowToFront command. If you are following this command up with another, it would be best to add a delay in between the commands, to ensure the window you want is the active one before the next command starts.

Below is a complete example created on an X-Keys Professional, for key 58. It will check to see if Outlook is the active window, and if not bring it forward. Then it launches a new email window.

Please note, this will only work if you have an active window on your system. If your Desktop is showing, it will not work.

Case 1058 ‘Button 058

If State ‘Pressed          [MWTAG10]

If MW3.IsActiveWindow(“OUTLOOK”)

‘<Keys[<RCtrl>↓n↓n↑<RCtrl>↑]>

MW3.sendScanCode(“285:1,49:1,49:0,285:0″)

‘</Keys[<RCtrl>↓n↓n↑<RCtrl>↑]>

Else

MW3.WindowToFront(“Inbox – Microsoft Outlook”)

‘<Delay[1000]>

MW3.insertDelay(1000)

‘</Delay[1000]>

‘<Keys[<RCtrl>↓n↓n↑<RCtrl>↑]>

MW3.sendScanCode(“285:1,49:1,49:0,285:0″)

‘</Keys[<RCtrl>↓n↓n↑<RCtrl>↑]>

End If

Else ‘Released [MWTAG11]

End If ‘Press-Release [/MWTAG10/MWTAG11]

The post ‘If’ Statements on the X-Keys appeared first on
Steadlands.

Invalidated Signatures on Web Forms

$
0
0

 

We have seen a few people creating web forms that require signing using one of Wacom’s STU series, but when they reload the page after signing and saving, the signatures are invalidated. This is because the data added to the web form does not get saved as part of the HTML, and the HTML behind the page is used as the HashData for the signature.

In this example, we look at a textbox being filled in, and the effect it has on the signatures.T his is the HTML for the comments box in the below image:

Please complete</span></div><div id=”a_174″><textarea id=”v_174″ name=”v_174″ rows=”5″>My Comment

</textarea></div></div>

KB21-1

If this was saved now, it would be fine, because no changes have been made to the form itself. Now, we take a look at the form again, this time with some text added to the comments box.

KB21-2

 

Now, because this version has been signed before it is saved, the ‘comment’ does not show up in the HTML. This is the code for this comments box:

Please complete</span></div><div id=”a_174″><textarea id=”v_174″ name=”v_174″ rows=”5″>My Comment

</textarea></div></div>

Even with the ++ in the box, it does not show in the HTML because the page hasn’t been saved like that. The result?

KB21-3

 

HTML for the comments box:

Please complete</span></div><div id=”a_174″><textarea id=”v_174″ name=”v_174″ rows=”5″>My Comment

++</textarea></div></div

Now that the document has been saved and reloaded, the ++ is now part of the HTML code. But because the form was signed before it was saved, the comment was not saved as part of the signature’s HashData. This means that upon reloading, the signature objects believe the form has been altered because of this new data appearing, and they display as invalid signatures.

The way to resolve this is to add a few lines to your ‘Start Signing’ function – one line to save the completed (but as yet unsigned) form, and another to refresh the page. This makes sure that all of the data added to the page is saved to it before signing, which means that the completed form then becomes the HashData, as opposed to the empty form, and the signatures will be captured and displayed properly.

The post Invalidated Signatures on Web Forms appeared first on
Steadlands.

New High Energy Resistors from Ohmite are rated at 400 Joules

$
0
0

New High Energy Resistors from Ohmite are rated at 400 Joules

New High Energy Resistors from Ohmite are rated at 400 Joules

Claiming that no resistor on the market handles energy spikes of this magnitude in such a small package, the new EY Series of high energy ceramic composition resistors from Ohmite offers a 400 Joule energy rating with 2.5 watts average power, making them ideally suited to withstand single or infrequent high energy impulse events, without any significant change in resistance.

Measuring just 46.2 mm length and 9.4mm diameter, the non-inductive axial leaded resistors are offered in 20 standard, 10% tolerance, resistance values ranging from 10 to 100,000 ohms. Ohmite see specific applications in medical devices such as defibrillators where the standard discharge pulse is around 360 Joules.

Currently, according to Ohmite, designers who are configuring multiple resistors to achieve the desired energy rating, can now use EY resistors to accomplish the same task, reducing inventory, board space, manufacturing and overall cost. The EY Series is also suited to automatic placement.

EY Series Datasheet

The post New High Energy Resistors from Ohmite are rated at 400 Joules appeared first on
Steadlands.

Capturing Cell Data Into A Signature

$
0
0

 

Behind every Excel spreadsheet and Word document is a programming interface – VBA (Visual Basic for Applications), a ‘light’ version of Visual Basic designed for constructing macros and functions to run within a document or spreadsheet. It is possible to use VBA to capture data from cells in an Excel spreadsheet, and apply them as user data in an IntegriSign signature object.

The example given below captures data from cells A1-A8 and applies them in order to the 8 different variables possible in IntegriSign’s SetSignerDetailsEx function. This will happen when someone double clicks the signature object to begin the signing process.

 

Private Sub eSignControl1_DoubleClick()

Dim signername, dept, org, town, county, country, email, location As String

signername = Sheet1.Cells.Item(1, “A”).Value

dept = Sheet1.Cells.Item(2, “A”).Value

org = Sheet1.Cells.Item(3, “A”).Value

town = Sheet1.Cells.Item(4, “A”).Value

county = Sheet1.Cells.Item(5, “A”).Value

country = Sheet1.Cells.Item(6, “A”).Value

email = Sheet1.Cells.Item(7, “A”).Value

location = Sheet1.Cells.Item(8, “A”).Value

eSignControl1.SetSignerDetails signername, dept, org, town, county, country, email, location

End Sub

The post Capturing Cell Data Into A Signature appeared first on
Steadlands.


The all New STU-530 & STU-430

$
0
0

Thin, robust and secure:

The all new STU-530 and STU-430 signature pads

The STU-530 brings colour to counters and check-outs. With its 5’’high resolution colour LCD screen, the STU-530 is the ideal signature pad for use at the POS or customer contact point. In addition to capturing handwritten signatures, it can be utilized for branding, marketing or advertising purposes, making it a valid marketing tool also.
STU-530
The Wacom pen can be tethered to the pad to prevent loss. The STU-530 is made for heavy stationary use especially at counters and check-out systems.  The STU-430 is a small and robust, extremely durable signature
pad. Its 4.5’’ monochrome screen is large enough to capture longer signatures as well as to accommodate soft buttons in addition to the signature area. The transflective LCD can easily be read in varying light conditions. A hardened glass surface protects the LCD screen and is highly resistant to scratches. The integrated pen compartment doubles as a USB cable lock to prevent accidental disconnection of the cable.   Both signature pads feature a new thin design and a low profile, flat surface. The new design reflects the market requirements for modern, robust, ergonomic and reliable signature pads. They are equipped with Wacom’s patented maintenance-free EMR technology, delivering 1024 pressure levels. For security, an AES 256 bit / RSA 2048 bit data encryption is embedded in the signature pads. Each unit is assigned a unique hardware ID in order to determine the exact unit that was used to capture a particular signature.
STU-430
For more information please Click Here.

Download the facts now! Wacom STU-530 & STU-430 Factsheet

The post The all New STU-530 & STU-430 appeared first on
Steadlands.

We’ve Gone Social!

$
0
0

Steadlands is now on Facebook and Twitter!

Like the Steadlands  Facebook Page for News and much more!…

Feel free to share the Steadlands Knowledge.

Steadlands Facebook

Why not follow @steadlands? Our Twitter Feed has lots of handy Retweets and News direct from Steadlands HQ.

Twitter Steadlands

 

The post We’ve Gone Social! appeared first on
Steadlands.

ePad Support

$
0
0

The ePad is not only supported by regular driver/software updates, but we can also provide technical assistance by email of phone for anyone having problems with their signature pad.

We have many years experience supporting the ePad range, and if we are unable to find a solution for you by phone or email, we operate a return-to-base testing facility while your product is still under warranty.

 

  • Universal Installer- Device Drivers
  • pDoc Signer- PC Signing Applications
  • IntegriSign Desktop- PC Signing Applications

For downloads please visit  http://www.epadsupport.com/

 

pDoc Signer / pDoc Forms Designer

pDoc Signer is a standalone application which allows a user to capture a handwritten signature onto a PDF document, with just a few clicks of the mouse. This piece of software does not require a full Adobe Acrobat license.

pDoc Forms Designer allows you to create a PDF document with numerous fields left blank for a reader to later complete in pDoc Signer.
Universal Installer
This is the driver package for use with the ePad range of signature pads. It consists of required driver files for each model, plus a test utility that allows you to test an ePad quickly and easily. Download.

 
IntegriSign Desktop
IntegriSign Desktop contains plug-ins for Microsoft Word and Excel, and Adobe Acrobat. The IntegriSign install also contains all of the manuals, samples, and demos for the ePad range, as well as the Software Developers’ Kit which will allow a user to incorporate IntegriSign and the ePad into their own software solutions. Download.

 

pDoc Signer / pDoc Forms Designer Quick Guides and User Manuals

 

The post ePad Support appeared first on
Steadlands.

Legislation Laws

$
0
0

Most laws regarding electronic signatures are based on the UN’s UNCITRAL Model Law on Electronic Signatures (2001) or the European Union Directive 1999/93/EC Framework for Electronic Signatures.

Each piece of signature legislation from around the world that was possible to find has been converted into a PDF document, and is presented here for your convenience. For those countries that have multiple pieces of legislation, the link will tell you which piece you are looking at.

UNCITRAL

EU Directive


Please select your required country from the below list.

Albania

Argentina digital signature law

Argentina decree 2628-02

Argentina decree 724-06

Armenia

Australia electronic transactions act

Australia New South Wales electronic transactions bill

Australia Victoria electronic transactions act

Australia Western Australia electronic transactions bill

Austria

Azerbaijan

Bahamas

Barbados

Belgium

Belize

Brazil

Bulgaria

Canada electronic signature regulations

Canada personal information protection and electronic documents act

Canada secure electronic signature regulations

Chile

China

Colombia

Costa Rica

Croatia

Cyprus

Czech Republic

Denmark

Dominican republic

Ecuador

Egypt

Estonia

Finland

France

Germany esignature act

Germany framework law

Greece

Guatemala

Hungary

Iceland

India

Ireland

Italy

Jamaica

Japan

Korea

Latvia

Liechtenstein regulation on electronic signatures

Liechtenstein signatures law

Lithuania

Luxembourg

Macedonia

Malaysia

Malta

Mauritius

Montenegro

Myanmar

Netherlands

New Zealand

Norway

Pakistan

Panama

Peru

Philippines

Poland

Portugal

Romania

Russia

Samoa

Saudi Arabia

Serbia

Singapore

Slovakia

Slovenia

South Africa

Spain

St Vincent

Sweden

Switzerland

Thailand

Turkey

UK electronic agreements order

UK electronic communications act

UK electronic signatures regulations

Ukraine

Uruguay

USA E-sign act

USA E-sign consumer consent provision

USA ueta

Venezuela

Vietnam

The post Legislation Laws appeared first on
Steadlands.

How to enroll a new user onto a BioMax device.

$
0
0

Take the entry card for the new user, and scan it on the BioMax Plus. This will give you an OnTrack event with a UID number. Make note of this number. In this case, it is 5CE66798.

shot1

In the Prem. (Bio) tab, place two zeroes, then the OnTrack number into the Card Code box.

If your user wishes to use a PIN as well as a card and fingerprints, underneath the Card Code box, you will see another labeled Use PIN (2 boolean dig.), and another under that labeled PIN (4 decimal dig.). For your user to use a PIN, the first box must have ‘01’ as its contents, and the second must have whatever numbers you would like to use as a PIN.

Capture fingerprint 1 & 2.
After getting second Fingerprint.
shot2

Click User Enrolment to finish the procedure.

The post How to enroll a new user onto a BioMax device. appeared first on
Steadlands.

IEE’s inaugural UK Roadshow 2015

$
0
0

roadshowIEE

We are happy to invite you to IEE’s inaugural UK Roadshow.

Join us at the Heritage Motor Centre, Gaydon, England,
and experience our products

  •  NightGuard
  • People Counter
  • BodySense™
  • SafeHeat

and many more

on

Tuesday 3rd February 2015
from 11 am to 6 pm

and

Wednesday 4th February 2015
from 9 am to 2 pm

The post IEE’s inaugural UK Roadshow 2015 appeared first on
Steadlands.

10W SMD Current Sense Resistor Handles up to 270 Amps

$
0
0

FCSL 10W

 

10W SMD Current Sense Resistor Handles up to 270 Amps

Featuring the effective combination of very low and stable TCRs, Ohmite’s latest addition to their popular FCSL range of SMD current sense resistors offers a 10 watt power rating in a 1.1mm high 5929 package designed for automatic insertion.

Using metal foil construction, the FCSL150 has high heat resistance as well as low heat electromotive use and an operating temperature range of -55°C to +155°C.

The extended FCSL range now has resistance values down to 0.001ohms available from stock, along with 5 other popular values up to 0.050 ohms, with standard 1% tolerance at values of 0.003 ohms or higher.

The post 10W SMD Current Sense Resistor Handles up to 270 Amps appeared first on
Steadlands.


Ohmite CS5 current sense resistors offer accuracy and high amperage capacity

$
0
0

CS5

Ohmite CS5 current sense resistors offer accuracy and high amperage capacity

Addressing both high board population limitations low resistance value requirements, the new CS5 Series from Ohmite goes on show for the first time at Electronica (Hall B6 Stand 412).
Ideally suited to applications in power modules, frequency converters and switch mode power supplies, Ohmite have used a 4-terminal Kelvin connection to provide ease of installation and eliminate stray TCR drift from the current-carrying terminals. This termination style also measures change in current more accurately than 2-terminal designs.
The resistance values of the CS5 are down to 0.001 ohms to enable higher current carrying capability up to 60 amps and the 30ppm TCR-means great stability of the resistance value over time. Tight tolerance models of the CS5 will be stocked in both 1% and 0.50% tolerances.
Available in 0.001, 0.002, 0.003, and 0.004 ohm resistance values, the CS5 series uses a non-inductive copper manganin element inserted into a cement sealed ceramic base.

The post Ohmite CS5 current sense resistors offer accuracy and high amperage capacity appeared first on
Steadlands.

ePad Software – What Does What?

$
0
0

ePad Software – What Does What?

We see quite a few queries regarding exactly what each piece of ePad software contains and/or does. To clear that up, here are some deeper descriptions of all of the software available on the ePadsupport.com site.
Universal Installer – This is the driver package which allows all of the ePad models to work under a Windows environment. It also contains control panel configuration utilities for each of the ePads, and the test utility that should be any first step in diagnosing problems with your ePad.
IntegriSign Desktop – This package contains plug-ins for Microsoft Word, Excel, and Adobe Acrobat, as well as all of the various manuals for using the ePad and IntegriSign. This also contains the Software Developers Kit, complete with samples demonstrating several key programming languages and functions, and manuals which will give you all the information you will need to integrate the ePad into your own software.
pDoc Signer – This is a standalone application that does not require IntegriSign to work (although you do still need the ePad drivers installed). It will allow you to edit and complete PDF forms, and sign them using the ePad.
IntegriSign Emcee – This is a corporate application, designed for large numbers of users. It allows a user to create a Signing Ceremony, providing documents to be completed and signed by invited participants. Unlike the other solutions, Emcee does not require a signature pad. It is designed to take advantage of the larger definition of electronic signatures, and allow a signer to ‘sign’ by capturing user data.
Linux Drivers – Currently, ePadLink have drivers for Fedora and Ubuntu Linux. These are for versions 16-20 and 10.04-12 respectively. There are instructions on how to install these on the ePadsupport.com website.
EPad Vision Firmware – These are firmware updates for the ePad Vision device. There is only one online, and should only be required for older model ePad Visions manufactured before November 2011.

The post ePad Software – What Does What? appeared first on
Steadlands.

ePad Software – What Does What?

$
0
0

We see quite a few queries regarding exactly what each piece of ePad software contains and/or does. To clear that up, here are some deeper descriptions of all of the software available on the ePadsupport.com site.

  • Universal Installer – This is the driver package which allows all of the ePad models to work under a Windows environment. It also contains control panel configuration utilities for each of the ePads, and the test utility that should be any first step in diagnosing problems with your ePad.
  • IntegriSign Desktop – This package contains plug-ins for Microsoft Word, Excel, and Adobe Acrobat, as well as all of the various manuals for using the ePad and IntegriSign. This also contains the Software Developers Kit, complete with samples demonstrating several key programming languages and functions, and manuals which will give you all the information you will need to integrate the ePad into your own software.
  • pDoc Signer – This is a standalone application that does not require IntegriSign to work (although you do still need the ePad drivers installed). It will allow you to edit and complete PDF forms, and sign them using the ePad.
  • IntegriSign Emcee – This is a corporate application, designed for large numbers of users. It allows a user to create a Signing Ceremony, providing documents to be completed and signed by invited participants. Unlike the other solutions, Emcee does not require a signature pad. It is designed to take advantage of the larger definition of electronic signatures, and allow a signer to ‘sign’ by capturing user data.
  • Linux Drivers – Currently, ePadLink have drivers for Fedora and Ubuntu Linux. These are for versions 16-20 and 10.04-12 respectively. There are instructions on how to install these ont he ePadsupport.com website.
  • ePad Vision Firmware – These are firmware updates for the ePAd Vision device. There is only one online, and should only be required for older model ePad Visions manufactured before November 2011.

The post ePad Software – What Does What? appeared first on
Steadlands.

Creating a new support ticket

$
0
0

Creating a new support ticket

  • When you click ‘New Ticket’, you are taken to a form to complete. You will first be presented with a shorter form to complete to introduce a new customer to the system. This should automatically complete the Email Address and Full Name fields.
  • In the Ticket Source field, select whichever option relates to the customer’s initial contact with Steadlands when reporting the problem.
    Under Help Topic, select whichever option best suits the problem being reported. The help topics are broken down to Feedback/Website, and Report A Problem, which has a few subcategories for the customer to choose depending on the item they are having problems with.
  • Under Department, the most common selection you will need to use here is Support.
  • There is only one SLA Plan to select, so use that one (72 hrs).

The post Creating a new support ticket appeared first on
Steadlands.

Displaying Images on Your STU Signature Pad

$
0
0

There are three functions you will need in order to upload an image to your STU signature pad. The first is to select an image from a folder. The second alters the properties of the image in order to make it compatible with the STU pad, and the third is to upload it to the pad itself.

 
First, select the image. This function is created as part of a Button Click event, in this case, btnBrowse.

 
Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click
Dim res
res = OpenFileDialog1.ShowDialog()
If (res = DialogResult.OK) Then
txtFilename.Text = OpenFileDialog1.FileName
DisplayImage(Image.FromFile(OpenFileDialog1.FileName))
End If
End Sub
As you can see, the final line in this function calls the next – DisplayImage. This will process the image into a format that can be displayed by the STU signature pad, then display it in a PictureBox control.
Private Sub DisplayImage(ByVal img As Image)
‘ resize the image to fit the panel
‘ STU displays: 300:396×100 430:320×200 500:640×480 520:800×480 530:800×480
‘ 300/420 scale by 2, else scale by 4. Also handle unexpected size.
Dim scale = 1
If (img.Width > 400) Then
scale = 4
ElseIf (img.Width > Panel1.Width) Then
scale = 2
End If

PictureBox1.Size = New Size(img.Width / scale, img.Height / scale)
‘ don’t exceed the panel size:
If (PictureBox1.Size.Width > Panel1.Size.Width Or PictureBox1.Size.Height > Panel1.Size.Height) Then
PictureBox1.Size = Panel1.Size
End If

‘ centre the image in the panel
Dim x, y
x = Panel1.Location.X + ((Panel1.Width – PictureBox1.Width) / 2)
y = Panel1.Location.Y + ((Panel1.Height – PictureBox1.Height) / 2)
PictureBox1.Location = New Point(x, y)

PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
PictureBox1.Image = img
PictureBox1.Parent = Me
PictureBox1.BringToFront()

End Sub

 
Finally, the function needed to upload the image onto the STU pad. Note that this is not a permanent upload. You are not saving the image onto the pad, rather you are sending a screen for the pad to display that just happens to consist of the graphical data of an image file.

 
Private Sub SendToSTU()
Try
If Connect() <> True Then
Return
End If

print(“Connected: ” + info.modelName)
Dim protocolHelper = New wgssSTU.ProtocolHelper()
Dim encodingFlag As wgssSTU.encodingFlag = 0
Dim encodingMode As wgssSTU.encodingMode = 0

Dim idP = thepad.getProductId()
encodingFlag = protocolHelper.simulateEncodingFlag(idP, encodingFlag)
print(“Encoding flag: ” + encodingFlag.ToString())
If (encodingFlag And wgssSTU.encodingFlag.EncodingFlag_24bit) Then
If (thepad.supportsWrite()) Then
encodingMode = wgssSTU.encodingMode.EncodingMode_24bit_Bulk
Else
encodingMode = wgssSTU.encodingMode.EncodingMode_24bit
End If

ElseIf (encodingFlag And wgssSTU.encodingFlag.EncodingFlag_16bit) Then
If (thepad.supportsWrite()) Then
encodingMode = wgssSTU.encodingMode.EncodingMode_16bit_Bulk
Else
encodingMode = wgssSTU.encodingMode.EncodingMode_16bit
End If
Else
‘ assumes 1bit is available
encodingMode = wgssSTU.encodingMode.EncodingMode_1bit
End If
print(“encodingMode: ” + encodingMode.ToString())

Dim bitmapData ‘// This is the flattened data of the bitmap that we send to the device.
Dim stream As New System.IO.MemoryStream()
PictureBox1.Image.Save(stream, System.Drawing.Imaging.ImageFormat.Png)

bitmapData = protocolHelper.resizeAndFlatten(stream.ToArray(),
0, 0, 0, 0, cap.screenWidth, cap.screenHeight, CByte(encodingMode), wgssSTU.Scale.Scale_Fit, False, 0)
thepad.writeImage(encodingMode, bitmapData)

Disconnect()
Catch ex As Exception
print(“Exception: ” + ex.Message)
End Try

End Sub

The post Displaying Images on Your STU Signature Pad appeared first on
Steadlands.

Viewing all 113 articles
Browse latest View live