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 16 JUN 1999 04:04:01PM Wilhelm Schmitt wrote:

Printing text in fixed fonts is easy to accomplish in ARev.

Example: If the max length of a print line is 120 you can check

if len(printstring)] 120 then …..

But, how about formatting print text when using variable font?

Since each letter has a different width how do you justify text to fit into 6 inches? Or how to determine the length of the text?

Who has an idea on how to simulate word-wrapping and do other string formatting when printing with variable fonts like Times, Arial, Helvetica etc.?

Thanks in advance

Wilhelm Schmitt


At 17 JUN 1999 05:12AM Steve Smith wrote:

It can be done, but you'll wind up writing a truckload of code, and carrying tables with the widths (in pixels) of each character, and also calculating the coordinates of each block of text on the page.

You have to do much the same thing under Windows when handling proportional fonts.

Steve


At 17 JUN 1999 09:19PM Bob Carten, WinWin Solutions, Inc wrote:

Wilhelm,

Try printing out an HTML file, shell out to dos, open it with a browser. I'm assuming a windows workstation here. If you have a 4.x browser or better you can even include javascript in the header to get it to print upon load.

… also, I still owe you that library app.

Bob


At 21 JUN 1999 10:18PM Wilhelm Schmitt wrote:

Hello Bob,

thank you for the HTML tip. I did some tests and they look good.

In my applications I make extensive use of the Banded Report Writer, which writes the specs of the report in the REPORTS file.

However I would like to write a routine to connect directly to the existing report specs. Unfortunately I got stuck with the record layout. Is there any explanation about the record layout for the Banded Report Writer? What are your suggestions for producing HTML output from ARev?

Best Regards

Wilhelm

View this thread on the forum...

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