Hi,
I'm having problems loading values for capType Array and Enumeration (supported resolutions, page sizes, etc.).
Can you please provide a javascript example?
Thanks,
Geovan.
Javascript capabilities
Moderator: Alex
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Javascript capabilities
Hello Geovan,
I don't know why VBArray object does not accept array from ActiveX. We will try to solve this problem in next version of ActiveX and maybe we will add new methods specially for JavaScript which will return array as string.
Best regards, Alexander
I don't know why VBArray object does not accept array from ActiveX. We will try to solve this problem in next version of ActiveX and maybe we will add new methods specially for JavaScript which will return array as string.
Best regards, Alexander
-
- Posts: 4
- Joined: Wed Mar 11, 2009 7:43 pm
Re: Javascript capabilities
Hello Alexander,
Please take into account that capItems, GetResolutions(), etc. does not work in JavaScript, JScript and VBScript.
Thanks for your reply,
Geovan.
Please take into account that capItems, GetResolutions(), etc. does not work in JavaScript, JScript and VBScript.
Thanks for your reply,
Geovan.
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Javascript capabilities
Hello Geovan,
Please try to use version 5.0 of VintaSoftTwain ActiveX.
Best regards, Alexander
Please try to use version 5.0 of VintaSoftTwain ActiveX.
Best regards, Alexander
-
- Posts: 4
- Joined: Wed Mar 11, 2009 7:43 pm
Re: Javascript capabilities
Hello Alexander,
I'v tryied using version 5.0 but I got the same issues from JavaScript and VBScript.
Thanks,
Geovan.
I'v tryied using version 5.0 but I got the same issues from JavaScript and VBScript.
Thanks,
Geovan.
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Javascript capabilities
Hello Geovan,
You should use the ConvertArrayToString method. Here is an example:
Best regards, Alexander
You should use the ConvertArrayToString method. Here is an example:
Code: Select all
alert("Supported resolutions: " + VSTwain1.ConvertArrayToString(VSTwain1.GetResolutions()));
-
- Posts: 4
- Joined: Wed Mar 11, 2009 7:43 pm
Re: Javascript capabilities
Hello Alexander,
A minor modification, parameter Digits After Point is required:
It is working fine now!
Thank you very much,
Geovan.
A minor modification, parameter Digits After Point is required:
Code: Select all
alert("Supported resolutions: " + VSTwain1.ConvertArrayToString(VSTwain1.GetResolutions(), 0));
Thank you very much,
Geovan.