CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Can't get SaveImage to work

by Soren SDF » 30 Sep 2013 13:07

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.
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 30 Sep 2013 14:15

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Soren SDF » 09 Oct 2013 12:10

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
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 09 Oct 2013 15:48

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Alexander Bulei » 10 Oct 2013 18:36

Hi Soren,

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

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


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Alexander Bulei » 10 Oct 2013 18:42

cgdevtools wrote:Hi Soren,

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

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


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Soren SDF » 10 Oct 2013 19:50

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
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 11 Oct 2013 09:14

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Soren SDF » 11 Oct 2013 10:35

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
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Soren SDF » 15 Oct 2013 09:32

Du you have a demo for mobile where this works, that i can try out?

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

Next

Return to JQMImage

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.