Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Wrapping in PDF output

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I have too many columns in PDF, so they go on to the second page.

Is there a way I can simulate a "word wrap".
I.E.

First set of fields go on the first row.
Second set of fields go on the second row.


Thanks,

Leo ;-)
 
Hmmm, you didn't get two rows of fields; F1 - F3 on the first row, and F4 - F6 on the second row? What did you get, or perhaps, are you really looking for something else?
 
What I got was this:

F1HEADING, F1VALUE F2HEADING, F2VALUE F3HEADING, F3VALUE

What I'm looking for is some thing like this:

F1HEADING F2HEADING F3HEADING
F4HEADING F5HEADING F6HEADING

F1VALUE F2VALUE F3VALUE
F4VALUE F5VALUE F6VALUE




Thanks,

Leo ;-)
 
What you probably need what's known as the Macgyver technique.

Create a file of blanks, with as many rows as you require on the output

eg

TABLE FILE CAR
PRINT COUNTRY NOPRINT
AND COMPUTE
BLANK/A1 = ' ';
COUNTER/I9 = LAST COUNTER + 1;
WHERE RECORDLIMIT EQ x (as many rows as you need)
ON TABLE HOLD AS BLANKS
END


Create a dummy field in the data file and join to BLANKS
JOIN BLANK WITH CAR IN MYFILE TO ALL BLANK IN BLANKS

DEFINE FILE MYFILE
BLANK/A1 = ' ';
END

TABLE FILE MYFILE
PRINT CAR COUNTRY COUNTER
ON TABLE HOLD AS HOLD1
END

This file now contains each Car / Country x number of times, so

DEFINE FILE HOLD1
FIELD1/A20 = IF COUNTER EQ 1 THEN CAR ELSE
IF COUNTER EQ 2 THEN COUNTRY ELSE ' ';
END

TABLE FILE HOLD1
PRINT FIELD1 AS 'Car,Country'
END

Dependiong on what you're doing, you'll need to add various measures to prevent blank lines etc but this should be a start.
 
Thank you Craigiep; I do appreciate all your efforts.

I will try that, however, I was looking for a straight-forward approach. I guess that does not exist in WF; huh?


Thanks again; have a great day.


Thanks,

Leo ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top