Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 23 NOV 1998 07:12:45PM Phil Thalmann wrote:

Does anyone have some sample code for dumping a report to screen instead of the printer ?? In ARev we used to use VIEW.INIT etc and the PRINT function would simply drop the printed output to the screen.

I've developed in OI3.6 an application which prints custom reports utilizing the Print_text function.

I tried creating a window with a single edit box but can't figure out how to utilize the 'createparam' parameter with Start_Window in my program to pass the required data to that window's edit box.

Any help appreciated,

Phil


At 23 NOV 1998 07:23PM Phil Thalmann wrote:

I think I figured this out already.

Will write again if I don't figure it out.

Thx


At 25 NOV 1998 09:18AM Cameron Purdy wrote:

Phil,

There is something that you could use for many of those tasks … it is called ORView:

function OR_VIEW(ReportName, Script)

The ReportName is the name of a report built in "Report Builder" (not the Report Designer). Or, you can pass an R/List script in the second parameter.

There is also a fancy-dancy third party tool called S/List from Sprezzatura Ltd.. It was on one of the previous Works CD's.

Cameron Purdy

Revelation Software


At 26 NOV 1998 11:41AM Phil Thalmann wrote:

Actually I'm converting old reports from ARev to OI and the reports pretty much have to stay in the Basic+ format as there is all kinds of data manipulation going on before printing. I checked out Report Builder briefly but… doesn't seem like it'll be flexible enough for this.

Someone mentioned the way to go would be to create a window with one editbox. Then insert all the text into this editbox using Set_Property. This of course means that I either have two sections in my program, one using Print_Text and the other using Set_Prop etc.

Is this the best way ?? Or is there another.

Last problem is printing from Basic+ in columns. ie. Getting the columns to line up… Windoz proportional printing doesn't do nice things with columns! - and you know how accountants can be

I have managed to use Courier New but then I can't get the font small enough to fit everything on one page.

Any thoughts out there ??

Phil


At 27 NOV 1998 10:50AM Donald Bakke wrote:

Phil,

For what you are trying to do there is no better choice than to use the OIPI (OpenInsight Printer Interface) from Splaver Software. This gives you the most power and flexibility for creating Basic+ reports (print only or preview mode) and it has cool features for displaying associated columns with justification, word wrap, borders, etc.

An evaluation copy was included on one of the Works versions (3.5 I believe) or you can go to their website and download the latest evaluation version.

dbakke@srpcs.com

SRP Computer Solutions


At 27 NOV 1998 11:11AM David Pociu wrote:

As for fonts that "line-up", use Courier.


At 27 NOV 1998 03:00PM Phil Thalmann wrote:

I appreciate the input… I think I'm going to try OIPI though as Courier is old and somewhat limiting for what I'm have to preview and print.

Phil


At 27 NOV 1998 03:01PM Phil Thalmann wrote:


At 27 NOV 1998 03:56PM Phil Thalmann wrote:


At 27 NOV 1998 03:56PM Phil Thalmann wrote:


At 05 DEC 1998 02:34AM Nick Stevenson wrote:

If you are still interested, we have developed a module which allows the user to select printing to screen, printer, file and (soon) to HTML. You simply call these routines from your Basic+ SP and the module does the rest.

email me at nick@wsa.co.za if you would like some details.

PS. It's free.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/bfa52f826ccca09d852566c600012ae7.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1