Hello,

Is it possible and how can we use activeX with the alternateLanguage Function 
of runrev by the way of visual basic script vbs? I do know how to run Excel or 
Word from runrev in this way (using COM and createObject), but not how to use 
an ocx.

Any idea or suggestions?

I use an ocx (Olympus Twain Wizard) for administration of a scanner on windows 
(TWAIN). This works in Visual Basic 6.0 without any user interaction (in this 
case Scan if the Form opens:)

Private Sub Form_Load()
Form1.Twiz1.AutoFeeder = True
Form1.Twiz1.ShowUI = False
Form1.Twiz1.Resolution = 300
Form1.Twiz1.AcquireToFile ("c:\test.jpg")
End Sub

Now I try to do this with vbs in runrev (but I do not know whether this is 
possible).

I tried 


   scanner = CreateObject("Twizlib.Twiz")
        scanner.AutoFeeder = True
        scanner.MaxImages = 3
        scanner.ShowUI = False
        scanner.Resolution = 300
        scanner.AcquireToFile("c:\test.jpg")



But the ocx seems not to be accessible by createObject ("The ActiveX object can 
not produce a new object"). To be shure: But this error even occurs when the 
name of the class is wrong.

The Typelib ID of this ocx is

{A96AC4E1-6EBF-11D0-AA7C-00608CC9A71F}

the most importent methods and settings are 
ShowUI = False
AcquireToFile("c:\test.jpg")

Regards
Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to