Run Print2Flash on Ruby on Rails

Using Print2Flash Document API
Post Reply
terasurfer
Posts:1
Joined:Tue Jul 15, 2008 3:21 am
Run Print2Flash on Ruby on Rails

Post by terasurfer » Tue Jul 15, 2008 3:38 am

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

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Run Print2Flash on Ruby on Rails

Post by staff » Fri Oct 17, 2008 5:26 am

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

Post Reply