Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Where is an example of printing with ooRexx?

2012-07-24
2012-08-14
  • Art Heimsoth
    Art Heimsoth
    2012-07-24

    I am trying to port a dBase application to ooRexx on Windows and need some way
    to print reports. Is there an example I can look at interfacing to the Print
    facilities in Windows?

     
  • Mark Miesfeld
    Mark Miesfeld
    2012-08-02

    I wish people would use the ooRexx Users mailing list rather than these
    forums. The forums are clumsy to work with and even though I monitor these
    forums I often do not see these posts.

    ooRexx doesn't have any functionality to interface with the print facilities
    in Windows.

    You might want to check out the printer object provided by Lee Peedin on this
    site:

    http://pragmaticlee.safedataisp.net/

    Scroll down on the page until you see the printer object. The printer object
    works with ooRexx.

    The other thing that might be usable is to print with notepad. In ooRexx
    redirect what you want to print into a file and then print it with notepad. In
    a Rexx program:

    'echo Hello World > myFile.txt'

    'notepad /P myFile.txt'

    Would print a page with Hello World on it. Or if your reports are already in
    files then just print them with the notepad /P syntax.

     
  • Hagrinas
    Hagrinas
    2012-08-07

    Then perhaps we need a better overall solution. Forums such as these and
    mailing lists serve different purposes. Mailing lists are good for those with
    an ongoing interest and forums are good for those with occasional questions.
    The latter should represent. the majority of users. The lack of content in the
    forums doesn't serve well to show an active ooRexx community. Users with one-
    off questions might balk at the notion of signing up for a list to ask it.

    Forum content can get delivered by email, but there are other alternatives
    such as forums that are directly tied to specific mailing lists, show the
    content of mailing list threads on a web page, integrate web posts into the
    mailing list for those who don't use a web interface, and combine the best of
    both worlds as long as mailing list content isn't meant to be closed. The best
    solution would be the one that best serves ooRexx as well as the ooRexx
    community at large. A solution of that nature would show there there is a
    great deal of activity in the ooRexx community beyond what shows up in the
    forum.