S
Scott Toney
I tried to save the signature box to a bitmap file using the getsignatureex,
filestream create and binary writer, so that I could print it and I am
getting a file that is not recognized as a bitmap. I am trying to do this in
VB. Can anyone tell me what I am doing wrong?
Code:
If (Not (Signature1.GetSignatureEx()) Is Nothing) Then
Dim signatureBytes() As Byte
signatureBytes = Signature1.GetSignatureEx()
Try
Dim fs As FileStream
fs = New FileStream("R1.bmp", FileMode.Create)
Dim writer As BinaryWriter = New BinaryWriter(fs)
writer.Write(signatureBytes)
writer.Close()
fs.Close()
Catch ioerror As IOException
MessageBox.Show(ioerror.ToString + " " + ioerror.InnerException.Message)
Catch er As Exception
MessageBox.Show(er.ToString)
End Try
'Signature1.Clear()
End If
Thanks
Scott
filestream create and binary writer, so that I could print it and I am
getting a file that is not recognized as a bitmap. I am trying to do this in
VB. Can anyone tell me what I am doing wrong?
Code:
If (Not (Signature1.GetSignatureEx()) Is Nothing) Then
Dim signatureBytes() As Byte
signatureBytes = Signature1.GetSignatureEx()
Try
Dim fs As FileStream
fs = New FileStream("R1.bmp", FileMode.Create)
Dim writer As BinaryWriter = New BinaryWriter(fs)
writer.Write(signatureBytes)
writer.Close()
fs.Close()
Catch ioerror As IOException
MessageBox.Show(ioerror.ToString + " " + ioerror.InnerException.Message)
Catch er As Exception
MessageBox.Show(er.ToString)
End Try
'Signature1.Clear()
End If
Thanks
Scott