Focal Point
[SOLVED] No Control Over Bold Page Heading

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8247033196

May 28, 2019, 05:58 PM
DataCarniv0r
[SOLVED] No Control Over Bold Page Heading
Hello, I'm not sure if this is a bug or simply something I'm doing wrong. I'm using App Studio 8204. When I create a report, and then drop a Page Heading section onto my report, I have no control over the bold settings of the text (with bold button on report tab). I have tried with and without an alignment grid. It doesn't matter which scope I select on the Report tab e.g. Cell, etc.

What will work is if I click on the U with the red line through it which is the remove underline. Then it will un-bold the text which makes no sense. In the source, it applies STYLE=NORMAL. My guess is that because its a header section, the text is default bold unless you specify? But why does the remove underline button do this?

Any suggestions appreciated.

Thanks!

This message has been edited. Last edited by: FP Mod Chuck,
May 28, 2019, 07:21 PM
Doug
Please supply "the source", that you mentioned, so we can see it, and help with this.
May 29, 2019, 08:08 AM
MartinY
Using AS the styling that you choose will affect the whole Heading except when using Alignment Grid such as below.

FYI, below code as been generated with AS 8204
Steps :
1- Drag in COUNTRY, CAR and DEALER_COST
2- Add Page Header
3- Right click Page Header and select Alignment Grid and select 3 rows x 3 columns
4- Type each text in each cell
5- Select cell 1-1 and click Bold from the styling options
6- Select cell 1-2 and click Italic from the styling options
7- Select cell 2-2 and click Underscore from the styling options
8- Select cell 3-1 and click Bold, Italic and Underscore from the styling options

TABLE FILE CAR
SUM
     CAR.BODY.DEALER_COST
BY  CAR.ORIGIN.COUNTRY
BY  CAR.COMP.CAR
HEADING
"Bold<+0>Italic"
"Normal<+0>Underscore"
"All<+0> "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = warm,
$
TYPE=HEADING,
     SIZE=12,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     STYLE=BOLD,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     STYLE=ITALIC,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     STYLE=UNDERLINE,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     STYLE=BOLD+ITALIC+UNDERLINE,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     WIDTH=1.000,
$
ENDSTYLE
END



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
May 29, 2019, 11:58 AM
DataCarniv0r
Hi Doug and Martin, thanks. When I click on a bold button, I expect it to bold the text I'm working with or un-bold it when clicked again.

This is not happening in the header section of my report. For some reason, it works when I click the U with the red line through it (un-bolds) which is the No Underline button. It will bold then when I click on the bold button, but not un-bold when clicking it again. Very buggy unless I messed something up in the code at some point and things are getting confused. Anyway, here is my current source:
 
TABLE FILE SQLOUT
HEADING
"My Perfect Document<+0>Industry: <IMP_INDUSTRY       Location: <IMP_LOCATION "
"IMPORTANT<+0>Type: <IMP_TYPE<+0>Status: <IMP_STATUS "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = IYFSX:/EBAT/EBASERVEX/_EBAHOMEX/ETCXB/warm.sty,
$
     PAGESIZE='Letter',
     LEFTMARGIN=0.500000,
     RIGHTMARGIN=0.500000,
     TOPMARGIN=0.500000,
     BOTTOMMARGIN=0.500000,
$
TYPE=REPORT,
     FONT='IBIDEFAULT',
     SIZE=9,
     COLOR=RGB(20 20 20),
     STYLE=-UNDERLINE,
     RIGHTGAP=0.180556,
     LEFTGAP=0.027778,
     TOPGAP=0.013889,
     BOTTOMGAP=0.013889,
$
TYPE=DATA,
     FONT='IBIDEFAULT',
     SIZE=9,
$
TYPE=HEADING,
     COLOR=RGB(75 75 75),
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     SIZE=11,
     WIDTH=3.375,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     SIZE=10,
     JUSTIFY=RIGHT,
     WIDTH=.875,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     SIZE=9,
     JUSTIFY=RIGHT,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=4,
     SIZE=9,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     SIZE=9,
     STYLE=NORMAL,
     WIDTH=1.250,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=2,
     SIZE=9,
     STYLE=NORMAL,
     WIDTH=1.375,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     SIZE=9,
     STYLE=NORMAL,
     WIDTH=3.375,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     SIZE=9,
     JUSTIFY=RIGHT,
     WIDTH=.875,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=3,
     SIZE=9,
     JUSTIFY=RIGHT,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=4,
     SIZE=9,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=FIELD,
     ITEM=1,
     SIZE=9,
     STYLE=NORMAL,
     WIDTH=1.250,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=FIELD,
     ITEM=2,
     SIZE=9,
     STYLE=NORMAL,
     WIDTH=1.375,
$
ENDSTYLE
END

 

May 29, 2019, 01:23 PM
MartinY
As per my sample above, it works as expected with AS 8204 gen08172018 under client 8204 gen48 when click/unclick buttons

Since you are more concerned by having AS working as expected than having the proper code, I suggest that you contact Tech Support for further help


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
May 30, 2019, 12:25 PM
DataCarniv0r
Thanks, Martin. Will do. Looks like we have the same build. In the mean time I am finding I can go to the source and adjust things as desired.