Page 1 of 1

Run Print2Flash on Ruby on Rails

Posted: Tue Jul 15, 2008 3:38 am
by terasurfer
Hi
Does somebody knows how to run Print2Flash on Ruby on Rails? :?:
I heard that I have to use win32ole but do not know how?
Or does somebody know how to run a VBScript from Ruby?
Do you have tips, suggestions or even a sample program?
Thanks
Terasurfer

Re: Run Print2Flash on Ruby on Rails

Posted: Fri Oct 17, 2008 5:26 am
by staff
We haven't tested this on Ruby but think it is possible to access Print2Flash OLE Automation API from there using win32ole standard Ruby library . You may create a Print2Flash Server object using the code such as this:

Code: Select all

p2f = WIN32OLE.new(“P2F.Server2”)

and then you may call Server object methods or access properties as described here: http://print2flash.com/help/ServerObject.php
Also you need to setup a Print2Flash service as described here: http://print2flash.com/help/ServerAppli ... window.php