PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Opennetcf signature control
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Opennetcf signature control
![]() |
Opennetcf signature control |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I am using VB.NET 2003 with the Opennetcf signature control. Code is listed below: Dim signatureBytes As Byte() = Signature1.GetSignatureEx Signature1.Clear() Signature1.LoadSignatureEx(signatureBytes) Dim fs As New System.IO.FileStream("signature1.bmp", IO.FileMode.Create) Dim writer As New System.IO.BinaryWriter(fs) writer.Write(signatureBytes) writer.Close() fs.Close() The information does pass into the variable signatureBytes because when I clear the controls, it appears again perfectly. However it does not save to the file. It does create the file but not save it. Any ideas anyone? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
JB,
Here's a C# example that shows you how to save a signature to a file: http://groups.google.com/group/micr...42606fe0fb47766 -- Ginny Caughey ..NET Compact Framework MVP "JB" <JB@discussions.microsoft.com> wrote in message news:77B4C06E-2A49-4987-9ACB-94D55E25BFFE@microsoft.com... > Hi, > > I am using VB.NET 2003 with the Opennetcf signature control. Code is > listed > below: > > Dim signatureBytes As Byte() = Signature1.GetSignatureEx > Signature1.Clear() > Signature1.LoadSignatureEx(signatureBytes) > > Dim fs As New System.IO.FileStream("signature1.bmp", IO.FileMode.Create) > Dim writer As New System.IO.BinaryWriter(fs) > writer.Write(signatureBytes) > writer.Close() > fs.Close() > > The information does pass into the variable signatureBytes because when I > clear the controls, it appears again perfectly. However it does not save > to > the file. It does create the file but not save it. Any ideas anyone? |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

