Page 1 of 2

Can't get SaveImage to work

PostPosted: 30 Sep 2013 13:07
by Soren SDF
Hi.

I have a TIWCGJQMSignature and a TIWCGJQMImage on a form.
In the forms OnCreate i load the signature from a field in my database and export it to the image.
I can see the image on screen but i can't save it to file. I step in to the source code and when it executes to
"if (AFileName <> '') and Assigned(FPicture) and (not FPicture.Empty) then
SaveImageToFile(AFileName,FPicture.Picture);"
It skips saving to file because FPicture.Empty=True.

Any suggestions?

Sören A.

Re: Can't get SaveImage to work

PostPosted: 30 Sep 2013 14:15
by Alexander Bulei
Hi Soren,

Soren SDF wrote:Hi.

I have a TIWCGJQMSignature and a TIWCGJQMImage on a form.
In the forms OnCreate i load the signature from a field in my database and export it to the image.
I can see the image on screen but i can't save it to file. I step in to the source code and when it executes to
"if (AFileName <> '') and Assigned(FPicture) and (not FPicture.Empty) then
SaveImageToFile(AFileName,FPicture.Picture);"
It skips saving to file because FPicture.Empty=True.

Any suggestions?

Sören A.


When you export TIWCGJQMSignature to image, the image is setted by data on user browser, and doesn't fill the Picture property.

We will try to find the solution for this asap.

Best Regards.

Re: Can't get SaveImage to work

PostPosted: 09 Oct 2013 12:10
by Soren SDF
Hi and thanks for remote help with my installation problem.
I just wanted to check on this issue. Is it resolved yet? I still can't get it to work in version 1.7.0.2989

Sören

Re: Can't get SaveImage to work

PostPosted: 09 Oct 2013 15:48
by Alexander Bulei
Hi Soren,

Soren SDF wrote:Hi and thanks for remote help with my installation problem.
I just wanted to check on this issue. Is it resolved yet? I still can't get it to work in version 1.7.0.2989

Sören


Sorry,but we have not yet found the solution.

Best Regards.

Re: Can't get SaveImage to work

PostPosted: 10 Oct 2013 18:36
by Alexander Bulei
Hi Soren,

Please check "SaveAsImage" procedure in JQMSignature at current release.

delphi code
IWCGJQMSignature.SaveAsImage('C:\yoo.png');


Best Regards.

Re: Can't get SaveImage to work

PostPosted: 10 Oct 2013 18:42
by Alexander Bulei
cgdevtools wrote:Hi Soren,

Please check "SaveAsImage" procedure in JQMSignature at current release.

delphi code
IWCGJQMSignature.SaveAsImage('C:\test_image.png');


Best Regards.

Re: Can't get SaveImage to work

PostPosted: 10 Oct 2013 19:50
by Soren SDF
Yes, saving directly from the signature component is even better. However, i run the procedure but can't find any image file after. Do i need some special properties or permissions set?

Sören

Re: Can't get SaveImage to work

PostPosted: 11 Oct 2013 09:14
by Alexander Bulei
Hi Soren,

Soren SDF wrote:Yes, saving directly from the signature component is even better. However, i run the procedure but can't find any image file after. Do i need some special properties or permissions set?

Sören


It should work, maybe you don't have permissions on folder.

Best Regards.

Re: Can't get SaveImage to work

PostPosted: 11 Oct 2013 10:35
by Soren SDF
Nope.

I'm saving it to WebApplication.UserCacheDir and the application can save other files there...
Could you send me a simple demo of this? For mobile that is.

Sören

Re: Can't get SaveImage to work

PostPosted: 15 Oct 2013 09:32
by Soren SDF
Du you have a demo for mobile where this works, that i can try out?

Sören