I am using Developer Studio and Report Painter to create a report in. I am trying to add multiple entries on one line of the Page Heading. For example a person's name on the left, date in the center, and address on far right. When the report is run it shows these fields right beside each other with no spacing. How do I format so that I see it with the appropriate spacing when I run it?
August 26, 2004, 01:08 AM
susannah
i can show you in code, but i have no idea how to make the gui do anything. HEADING "FIRST <+0> SECOND"
..then in the stylesheet TYPE=HEADING,LINE=1,ITEM=1,JUSTIFY=LEFT,$ TYPE=HEADING,LINE=1,ITEM=2,JUSTIFY=RIGHT,$ ..an alternate q+d way is to insert blanks in the header this way "FIRST &|nbsp;&|nbsp; SECOND" If you are using report assist (ah, this will work in the gui) and you go back into it and change your original header, you fex will bomb(525); it has inserted regular nonbreaking space characters into itself which wf tries to read as &vars. icky. so you need to trick your heading into working. That escape character is the key. ... a third and most common way is via HEADALIGN=BODY ..and that you can read about in the manual. its quite cool. It makes your heading into cells, matching your data, and gives you alot of flex.
August 26, 2004, 02:27 PM
Steve C
I have never had much luck with the style sheet and headings in the reporting environment. If you are running your report to the screen, there is one reliable way of doing what you want, and that is to fake out Focus and put your own html code into the heading. (The problem is that Focus does not easily split the heading row, which is one table cell, into multiple cells. Within a single cell you can not have different alignments in html, thus the problem. Here is what I do most of the time:
DEFINE FILE CAR X/A50='
'; Y/A50='
'; Z/A50='
'; Q/A50='
'; END TABLE FILE CAR HEADING "PRINT COUNTRY CAR MODEL SEATS DEALER_COST RETAIL_COST SALES ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ENDThis message has been edited. Last edited by: <Mabel>,