How to program for saving a signature file

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

Just starting out with Mobile apps....

Any guidence on how I might do the following...

Save a copy of the signature that the receiver of an order would provide (it
would be scribbled onto the Pocket PC) and saved to some kind of file (maybe
a .jpeg), then store the contents of that file in a sql server table ? or
maybe just store the path to the file there ?

Any direction is appreciated...

Thanks !
 
Ginny,

Thanks for the link, it maybe it is easy for you to modify.... but I have
been spinning in circles for days now... can you give me some hints as to
what is relevant to just obtaining and saving the signature ? I just want
to store the signature to a jpg or bmp. I have tried to compartmentalize
the sample into just the pieces I need but am having great difficulties.

I am using vb.net, not C#...

Thanks,
Rob
 
Rob,

Here's some code that uses that signature control and writes the signature
out as a PNG file. It would be the same for BMP except you'd use
ImageFormat.Bmp and the file would be much bigger:

FileStream fs = new FileStream(BmpFileName, FileMode.Create);
Bitmap bitmap = sigControl.Bmp;
bitmap.Save(fs, System.Drawing.Imaging.ImageFormat.Png);
fs.Close();
 
Back
Top