Using Vruby instead of VB ?

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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"...
  3. #2

    Default Re: Using Vruby instead of VB ?

    > -----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 ?
    >
    >
    > 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
    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.
    > 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.
    >3. Print reports in landscape and portrait mode
    Eek - now you're talking hardware interfaces - way out of my realm.
    >4. Run only on one machine (no networking etc)
    Simple enough - don't create any sockets or pipes that would allow
    networking. :)
    >
    > 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
    We'll help as we can, I'm sure. :)

    Regards

    Dan

    Berger, Daniel Guest

  4. #3

    Default 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

  5. #4

    Default Re: Using Vruby instead of VB ?

    Hi,
    > 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, Vruby/swin gives that , and Win 98 is a non-issue (yet).
    > > 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.
    Yes, I will use ODBC (or OLEDB, whichever turns out to be easier ;-)).
    ODBC Performance is not a big issue yet since the database is very small.
    > >3. Print reports in landscape and portrait mode
    >
    > Eek - now you're talking hardware interfaces - way out of my realm.
    The feature list on this website says something about "using printer with
    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)
    > >4. Run only on one machine (no networking etc)
    >
    > Simple enough - don't create any sockets or pipes that would allow
    > networking. :)
    Yes :-)

    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.
    > We'll help as we can, I'm sure. :)
    > Dan
    Thanks Dan.
    -- shanko


    Shashank Date Guest

  6. #5

    Default Re: Using Vruby instead of VB ?


    "Chad Fowler" <chad@chadfowler.com> wrote in message
    > 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.
    Yep.
    > # >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
    Thanks , Chad ... I somehow missed that.
    -- shanko


    Shashank Date Guest

  7. #6

    Default Re: Using Vruby instead of VB ?


    > -----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
    VRuby/Swin
    > 2. Interface with MS Access (possibly with MS SQL Server2K in future)
    DBI/ODBC
    > 3. Print reports in landscape and portrait mode
    Chad Folwer has covered that with his link to ruby-talk
    > 4. Run only on one machine (no networking etc)
    Simple
    >
    > 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
    >
    The main gotcha you have to worry about is the ruby thread suck up all the
    time issue.

    I will try to get a version of VRTools available soon so that you can use
    it.

    Steve Tuckner

    Steve Tuckner Guest

  8. #7

    Default Re: Using Vruby instead of VB ?


    "Steve Tuckner" <STUCKNER@MULTITECH.COM> wrote in message
    >
    > The main gotcha you have to worry about is the ruby thread suck up all the
    > time issue.
    I remember you mentioning about this during your presentation, but I did not
    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).
    > I will try to get a version of VRTools available soon so that you can use
    > it.
    That would be awesome ! Looking forward ...
    > Steve Tuckner
    Thanks Steve.
    -- shanko


    Shashank Date Guest

  9. #8

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139