Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 23 MAY 2002 01:53:19PM Ross Brooker wrote:

… this is a topic that's been raised years ago, are there any clever things I can use now, that are built into OI 3.7.3?

I found one old thread which suggested using GetTextExtent function in order to pad the columns correctly, but I have no idea how to declare external functions, and I couldn't see that padding with spaces that way differs from using fmt() (which I tried, with predictable results)

I've tried using tabs. My printer (a Kyocera FS1550 laser) seems to ignore them!

I don't want to use OIPI because apparently I'll have to contact Rev Tech for an 'updated licence file' … I don't really have time for that.

Here's a fragment of rough code that I'm using to try things:

.

.

.

selFontStruct=utility("CHOOSEFONT",window)

handle = get_property(@window,"HANDLE")

ret=print_init(1,"Test Report",handle)

ret=print_setHeader(hdr,selfontstruct)

ret=print_setFont(selfontStruct)

* Tab test which doesn't work!

for x=1 to 10

ret=print_text(str(x,x):char(9):str(x,x):char(9):"END")

next x

.

.

.

Of course I've tried using fmt(), but with proportional fonts, well you can guess what happens!

Any ideas would be appreciated…

Ross

====


At 23 MAY 2002 02:20PM Don Miller - C3 Inc. wrote:

I don't think that it's generally possible without OIPI. I tried that a while back to no avail. Fixed space fonts are do-able, though.

Don M.


At 23 MAY 2002 03:10PM Ross Brooker wrote:

Yes, I actually decided non-proportional fonts would be fine, but as soon as you start using print_ functions then you have to provide the fonts, and for some reason Courier 8pt seems to print proportionally once it's been selected through CHOOSEFONT. This could be a quirk of our printer setup, but it's damned annoying!


At 23 MAY 2002 04:15PM Donald Bakke wrote:

Ross,

Getting a license from Revelation usually takes a few hours. Just email them at [email protected] and they will respond with your license file. If you are worried about how long everything will take then I can guarantee you that you will burn more time trying to achieve a non-OIPI solution (as Don M. suggested) than simply switching to the OIPI right now.

[email protected]

SRP Computer Solutions, Inc.


At 23 MAY 2002 06:19PM Don Miller - C3 Inc. wrote:

Other Don ..

AMEN!! ;)

Don


At 30 MAY 2002 01:47PM Ross Brooker wrote:

Well, in the end I went for creating a Word merge document, as we do plenty of those already. So now my report just inserts into a Word table, and has nice formatting for all the headers and footers etc.

But thanks for the hints about OIPI, we will get that in place soon

Cheers,

Ross

====

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/8a4601645ca632cd88256bc20062440c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1