Page 1 of 1
Javascript capabilities
Posted: Wed Mar 11, 2009 7:50 pm
by geovan
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.
Re: Javascript capabilities
Posted: Wed Mar 18, 2009 10:05 am
by Alex
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
Re: Javascript capabilities
Posted: Wed Mar 18, 2009 11:51 am
by geovan
Hello Alexander,
Please take into account that capItems, GetResolutions(), etc. does not work in JavaScript, JScript and VBScript.
Thanks for your reply,
Geovan.
Re: Javascript capabilities
Posted: Mon Jun 08, 2009 10:44 am
by Alex
Hello Geovan,
Please try to use version 5.0 of VintaSoftTwain ActiveX.
Best regards, Alexander
Re: Javascript capabilities
Posted: Mon Jun 15, 2009 12:30 pm
by geovan
Hello Alexander,
I'v tryied using version 5.0 but I got the same issues from JavaScript and VBScript.
Thanks,
Geovan.
Re: Javascript capabilities
Posted: Mon Jun 15, 2009 3:39 pm
by Alex
Hello Geovan,
You should use the ConvertArrayToString method. Here is an example:
Code: Select all
alert("Supported resolutions: " + VSTwain1.ConvertArrayToString(VSTwain1.GetResolutions()));
Best regards, Alexander
Re: Javascript capabilities
Posted: Tue Jun 16, 2009 2:48 pm
by geovan
Hello Alexander,
A minor modification, parameter Digits After Point is required:
Code: Select all
alert("Supported resolutions: " + VSTwain1.ConvertArrayToString(VSTwain1.GetResolutions(), 0));
It is working fine now!
Thank you very much,
Geovan.