Ask a Question related to Ruby, Design and Development.
-
Shashank Date #1
Using Vruby instead of VB ?
Inspired by Steve's presentation at RubyConf-2003, (
thanks to zenspider, see:
Steve Tuckner: Ruby World: (Not) Implemented
[url]www.zenspider.com[/url] /dl /rubyconf2003 /RubyNotImplemented.tar.gz
)
I am looking at the possibility of using Vruby/Swin instead of VisualBasic
to develop a small (commercial) application on Windows. This application has
to:
1. Have native (Windows) look and feel
2. Interface with MS Access (possibly with MS SQL Server2K in future)
3. Print reports in landscape and portrait mode
4. Run only on one machine (no networking etc)
With Steve Tuckner, Dan Berger, Park Heesob and many other Win / Ruby
experts on my side, I feel like taking the risk ;-)
What do Rubyists have to say ? Any gotchas I need to be aware of ?
-- shanko
Shashank Date Guest
-
VRuby and Timeout
Hi I am getting an execution timeout in a timeout block executed in a vruby handler. It seems that some weird things are happenning with... -
VRuby/Win32 Question
This is a multi-part message in MIME format. ------=_NextPart_000_0126_01C3834F.594401B0 Content-Type: text/plain; charset="iso-8859-1"... -
Berger, Daniel #2
Re: Using Vruby instead of VB ?
> -----Original Message-----
I *think* Vruby/Swin will give you that from what I've read. I haven't> From: Shashank Date [mailto:sdate@everestkc.net]
> Sent: Saturday, November 22, 2003 1:37 PM
> To: ruby-talk ML
> Subject: Using Vruby instead of VB ?
>
>
> Inspired by Steve's presentation at RubyConf-2003, (
> thanks to zenspider, see:
>
> Steve Tuckner: Ruby World: (Not) Implemented
> [url]www.zenspider.com[/url] /dl /rubyconf2003 /RubyNotImplemented.tar.gz
> )
>
> I am looking at the possibility of using Vruby/Swin instead
> of VisualBasic to develop a small (commercial) application on
> Windows. This application has
> to:
>
> 1. Have native (Windows) look and feel
actually tried it. I'm a bit concerned that the author says his
development environment is Windows 98, but perhaps it's a non-issue.
I *thought* you could use ODBC to interface with MS Access, but I'm not> 2. Interface with MS Access (possibly with MS SQL Server2K in
> future)
positive. Otherwise, it ought to be possible via OLE (right?). There's
no specific DBD for either Access or SQL Server that I know of.
Eek - now you're talking hardware interfaces - way out of my realm.>3. Print reports in landscape and portrait mode
Simple enough - don't create any sockets or pipes that would allow>4. Run only on one machine (no networking etc)
networking. :)
We'll help as we can, I'm sure. :)>
> With Steve Tuckner, Dan Berger, Park Heesob and many other
> Win / Ruby experts on my side, I feel like taking the risk ;-)
>
> What do Rubyists have to say ? Any gotchas I need to be aware of ?
>
> -- shanko
Regards
Dan
Berger, Daniel Guest
-
Chad Fowler #3
Re: Using Vruby instead of VB ?
On Sun, 23 Nov 2003, Berger, Daniel wrote:
# > -----Original Message-----
# > From: Shashank Date [mailto:sdate@everestkc.net]
# > Sent: Saturday, November 22, 2003 1:37 PM
# > To: ruby-talk ML
# > Subject: Using Vruby instead of VB ?
# >
#
# > 2. Interface with MS Access (possibly with MS SQL Server2K in
# > future)
#
# I *thought* you could use ODBC to interface with MS Access, but I'm not
# positive. Otherwise, it ought to be possible via OLE (right?). There's
# no specific DBD for either Access or SQL Server that I know of.
I'm almost 100% certain ODBC will do the trick. Back in the bad old days,
I did some web stuff with Access in development in Sybase in production.
#
# >3. Print reports in landscape and portrait mode
#
# Eek - now you're talking hardware interfaces - way out of my realm.
#
This might help:
[url]http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/32861[/url]
Chad
Chad Fowler Guest
-
Shashank Date #4
Re: Using Vruby instead of VB ?
Hi,
Yes, Vruby/swin gives that , and Win 98 is a non-issue (yet).> I *think* Vruby/Swin will give you that from what I've read. I haven't
> actually tried it. I'm a bit concerned that the author says his
> development environment is Windows 98, but perhaps it's a non-issue.
Yes, I will use ODBC (or OLEDB, whichever turns out to be easier ;-)).>> > 2. Interface with MS Access (possibly with MS SQL Server2K in
> > future)
> I *thought* you could use ODBC to interface with MS Access, but I'm not
> positive. Otherwise, it ought to be possible via OLE (right?). There's
> no specific DBD for either Access or SQL Server that I know of.
ODBC Performance is not a big issue yet since the database is very small.
The feature list on this website says something about "using printer with>> >3. Print reports in landscape and portrait mode
> Eek - now you're talking hardware interfaces - way out of my realm.
swin"
[url]http://www.osk.3web.ne.jp/~nyasu/vruby/vrproject-e.html#feature[/url]
I will have to find out what it is all about. (if only I could
read/understand
Japanese ... sigh)
Yes :-)>> >4. Run only on one machine (no networking etc)
> Simple enough - don't create any sockets or pipes that would allow
> networking. :)
And I spent about an hour installing the "nifty" FormDesigner:
[url]http://homepage3.nifty.com/Yukimi_Sake/ruby.html[/url]
But it is worth the pain. Will keep you posted.
Thanks Dan.> We'll help as we can, I'm sure. :)
> Dan
-- shanko
Shashank Date Guest
-
Shashank Date #5
Re: Using Vruby instead of VB ?
"Chad Fowler" <chad@chadfowler.com> wrote in messageYep.> I'm almost 100% certain ODBC will do the trick. Back in the bad old days,
> I did some web stuff with Access in development in Sybase in production.
Thanks , Chad ... I somehow missed that.> # >3. Print reports in landscape and portrait mode
> This might help:
> [url]http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/32861[/url]
>
>
> Chad
-- shanko
Shashank Date Guest
-
Steve Tuckner #6
Re: Using Vruby instead of VB ?
VRuby/Swin> -----Original Message-----
> From: Shashank Date [mailto:sdate@everestkc.net]
> Sent: Saturday, November 22, 2003 2:37 PM
> To: [email]ruby-talk@ruby-lang.org[/email]
> Subject: Using Vruby instead of VB ?
>
>
> Inspired by Steve's presentation at RubyConf-2003, (
> thanks to zenspider, see:
>
> Steve Tuckner: Ruby World: (Not) Implemented
> [url]www.zenspider.com[/url] /dl /rubyconf2003 /RubyNotImplemented.tar.gz
> )
>
> I am looking at the possibility of using Vruby/Swin instead of
> VisualBasic
> to develop a small (commercial) application on Windows. This
> application
> has
> to:
>
> 1. Have native (Windows) look and feel
DBI/ODBC> 2. Interface with MS Access (possibly with MS SQL Server2K in future)
Chad Folwer has covered that with his link to ruby-talk> 3. Print reports in landscape and portrait mode
Simple> 4. Run only on one machine (no networking etc)
The main gotcha you have to worry about is the ruby thread suck up all the>
> With Steve Tuckner, Dan Berger, Park Heesob and many other Win / Ruby
> experts on my side, I feel like taking the risk ;-)
>
> What do Rubyists have to say ? Any gotchas I need to be aware of ?
>
> -- shanko
>
time issue.
I will try to get a version of VRTools available soon so that you can use
it.
Steve Tuckner
Steve Tuckner Guest
-
Shashank Date #7
Re: Using Vruby instead of VB ?
"Steve Tuckner" <STUCKNER@MULTITECH.COM> wrote in messageI remember you mentioning about this during your presentation, but I did not>
> The main gotcha you have to worry about is the ruby thread suck up all the
> time issue.
undertsand it fully then.
I also read your explanation in ruby-talk #85998 (to which David Garamond
correctly replied in
ruby-talk # 86070). I do not see any evidence of this when I run a small
test application say like this:
#-----------------------------------------
#
# Using vruby-031110
# Using vrswin-030906
#
require 'vr/vruby'
require 'vr/vrcontrol'
class MyForm <VRForm
def construct
self.caption="Hello World"
self.move(300,200,250,200)
addControl(VRButton,"btn1","&Exit",80,50,80,40)
end
def btn1_clicked
messageBox "Button Pushed"
exit
end
end
VRLocalScreen.showForm(MyForm)
VRLocalScreen.messageloop
#-----------------------------------------
Evidently I am missing something (or it could be that the author fixed it in
the recent version).
That would be awesome ! Looking forward ...> I will try to get a version of VRTools available soon so that you can use
> it.
Thanks Steve.> Steve Tuckner
-- shanko
Shashank Date Guest
-
daz #8
Re: Using Vruby instead of VB ?
"Shashank Date" wrote:> Hi,
>
>
> 3. Print reports in landscape and portrait mode
>
> The feature list on this website says something about "using printer with swin"
>
[url]http://www.threeweb.ad.jp/~nyasu/vruby/samples-e.html[/url]
(labeled "using priner" - which probably defeats Google)
^t
.... refers to the author's sample printer script:
[url]http://www.threeweb.ad.jp/~nyasu/vruby/sample/printer.rb[/url]
---
If you do use Win32OLE to script MS Access, OLE printing should be usable also ?
Wiki references for /other/ MS Office apps.
[url]http://www.rubygarden.org/ruby?ScriptingOutlook[/url]
[url]http://www.rubygarden.org/ruby?ScriptingExcel[/url]
Of possible interest (from Access/VBA help):
PrintOut method -
.PrintOut [printrange][, pagefrom, pageto][, printquality][, copies][, collatecopies]
PrtDevMode property - [Orientation] member (amongst others)
An Integer that specifies the orientation of the paper.
It can be either 1 (portrait) or 2 (landscape).
Haven't played this; good luck,
daz
daz Guest



Reply With Quote

