Focal Point
[CLOSED] ICONS alignment on the header changes w.r.t browser

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

January 17, 2019, 05:00 PM
srajeevan
[CLOSED] ICONS alignment on the header changes w.r.t browser
Hi,

I have a report where i have a title and an icon in the header.

Here is the code.
  
ON TABLE SUBHEAD
" <+0>-"
" <+0>-"
" <+0>Summary Report"
" <+0>-"
" <+0>-"
" <+0>-"



I have also placed a logo.

  
TYPE=TABHEADING,
     IMAGE=IBFS:/WFC/Repository/Images/logo.jpg,
     POSITION=(+0.041667 +0.000000),
     SIZE=(1.500000 1.000000),
$


When i run the report in Chrome the logo appears left aligned and the title of the report on center and that is the requirement.

When i run IR or Microsoft Edge the log overlaps and positions on the center.Is there something i can do about this or is this something i have to live with.

This message has been edited. Last edited by: FP Mod Chuck,


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
January 18, 2019, 10:05 AM
MartinY
What are the other settings that you may have in your style sheet (font, margin, squeeze, etc)?

Do you also have : ON TABLE SET HTMLEMBEDIMG ON ?

Is that giving you the same problem if you use the HEADING instead of SUBHEAD and/or have your image at the TYPE=REPORT instead of TYPE=TABHEADING ?

You should provide your whole code. It's probably related with styling.


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
January 22, 2019, 03:37 PM
srajeevan
Here is the styling part of the code.
I have 3 output formats other than HTML,i have added them as a drilldown calling the same procedure.

No log for default HTML output format,when i display other formats,the logo is being misplaced.

ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLEMBEDIMG AUTO
ON TABLE SET ASNAMES ON
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(<AHTML,AHTML>,<Portable Document Format (PDF),PDF>,<Excel XLSX (XLSX),XLSX>).Select type of display output.
-IF &WFFMT EQ 'HTML' GOTO htmllabel;
-IF &WFFMT EQ 'PDF' GOTO pdflabel;
-IF &WFFMT EQ 'XLSX' GOTO excellabel;
-IF &WFFMT EQ 'AHTML' GOTO ahtmllabel;
-htmllabel
ON TABLE SUBHEAD
" <+0>Summary"
" <+0>"
"<PDFGIF <AHTMLGIF <XLGIF "
ON TABLE SET STYLE *
	 INCLUDE = IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,
$

  LEFTMARGIN=1.000000,
     RIGHTMARGIN=1.000000,
     BOTTOMMARGIN=1.000000,
$
TYPE=REPORT,
$
     GRAPHTYPE=DATA,
     COLUMN=N4,
     GRAPHCOLOR='GREEN',
$
     GRAPHTYPE=DATA,
     COLUMN=N5,
     GRAPHCOLOR='GREEN',
$
TYPE=DATA,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
	 BACKCOLOR=(RGB(235 235 240) RGB(255 255 255)),
     JUSTIFY=CENTER,
$
TYPE=DATA,
	 COLUMN=N3,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
     JUSTIFY=LEFT,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=FIELD,
     ITEM=1,
	 TARGET='_blank',
     FOCEXEC=/WFC/Repository/Apps/Procedure/Summary_Rpt.fex( \
	 WFFMT='PDF' \
	 ),

$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=FIELD,
     ITEM=3,
     TARGET='_blank',
     FOCEXEC=/WFC/Repository/Apps/Procedure/Summary_Rpt.fex( \
	 WFFMT='XLSX' \
	 ),

$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=FIELD,
     ITEM=2,
     TARGET='_blank',
     FOCEXEC=/WFC/Repository/Apps/Procedure/Summary_Rpt.fex( \
	 WFFMT='AHTML' \
	 ),

$
TYPE=TITLE,
     FONT='CALIBRI',
     SIZE=14,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 51 102),
     STYLE=-UNDERLINE+BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
TYPE=HEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
-*TYPE=DATA,COLUMN=N2,IMAGE=(ICON_PATH),SIZE=(.3 .3),$
TYPE=TABHEADING,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
$
ENDSTYLE
-GOTO GOTSTYLE
-pdflabel
ON TABLE SUBHEAD
" <+0>-"
" <+0>-"
" <+0>Summary"
" <+0>-"
" <+0>-"
" <+0>-"
"<PDFGIF <AHTMLGIF <XLGIF "
ON TABLE SET STYLE *
	   INCLUDE = IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,
$
     PAGESIZE='10 x 14',
     ORIENTATION=LANDSCAPE,
$

TYPE = FOOTING,
	JUSTIFY= LEFT,
$
TYPE=DATA,COLUMN=N2,IMAGE=(ICON),SIZE=(.3 .3),$
TYPE=REPORT,
$
     GRAPHTYPE=DATA,
     COLUMN=N4,
     GRAPHCOLOR='GREEN',
$
     GRAPHTYPE=DATA,
     COLUMN=N5,
     GRAPHCOLOR='GREEN',
$
TYPE=DATA,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
	 BACKCOLOR=(RGB(235 235 240) RGB(255 255 255)),
     JUSTIFY=CENTER,
$
TYPE=DATA,
	 COLUMN=N3,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
     JUSTIFY=LEFT,
$
TYPE=TITLE,
     FONT='CALIBRI',
     SIZE=14,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 51 102),
     STYLE=-UNDERLINE+BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
TYPE=HEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$

TYPE=TABHEADING,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     IMAGE=IBFS:/WFC/Repository/Apps/Images/Logo.jpg,
     POSITION=(+0.041667 +0.000000),
     SIZE=(1.500000 1.000000),
$
TYPE=REPORT,
     COLUMN=N4,
     SQUEEZE=2.0000,
$
TYPE=REPORT,
     COLUMN=N5,
     SQUEEZE=2.0,
$
TYPE=REPORT,
     COLUMN=+/-,
     SQUEEZE=1.555556,
$
TYPE=REPORT,
     COLUMN=N7,
     SQUEEZE=0.916667,
$
ENDSTYLE
-GOTO GOTSTYLE
-excellabel
ON TABLE SUBHEAD
" <+0>-"
" <+0>-"
" <+0>Incident Summary"
" <+0>-"
" <+0>-"
" <+0>-"
"<PDFGIF <AHTMLGIF <XLGIF "
ON TABLE SET STYLE *
     INCLUDE = IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,
$

  LEFTMARGIN=1.000000,
     RIGHTMARGIN=1.000000,
     BOTTOMMARGIN=1.000000,
$
TYPE=REPORT,
$
     GRAPHTYPE=DATA,
     COLUMN=N4,
     GRAPHCOLOR='GREEN',
$
     GRAPHTYPE=DATA,
     COLUMN=N5,
     GRAPHCOLOR='GREEN',
$
TYPE=DATA,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
	 BACKCOLOR=(RGB(235 235 240) RGB(255 255 255)),
     JUSTIFY=CENTER,
$
TYPE=DATA,
	 COLUMN=N3,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
     JUSTIFY=LEFT,
$
TYPE=TITLE,
     FONT='CALIBRI',
     SIZE=14,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 51 102),
     STYLE=-UNDERLINE+BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
TYPE=HEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
TYPE=DATA,COLUMN=N2,IMAGE=(ICON),SIZE=(.3 .3),$
TYPE=TABHEADING,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
	 JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     WIDTH=4.181,
	 JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     IMAGE=IBFS:/WFC/Repository/Apps/Images/Logo.jpg,
     POSITION=(+0.041667 +0.000000),
     SIZE=(1.500000 1.000000),
$
ENDSTYLE
-GOTO GOTSTYLE
-ahtmllabel
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SUBHEAD
" <+0>-"
" <+0>-"
" <+0>Summary"
" <+0>-"
" <+0>-"
" <+0>-"
"<PDFGIF <AHTMLGIF <XLGIF "
ON TABLE SET STYLE *
	 INCLUDE = IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,
$

  LEFTMARGIN=1.000000,
     RIGHTMARGIN=1.000000,
     BOTTOMMARGIN=1.000000,
$
TYPE=REPORT,
$
     GRAPHTYPE=DATA,
     COLUMN=N4,
     GRAPHCOLOR='GREEN',
$
     GRAPHTYPE=DATA,
     COLUMN=N5,
     GRAPHCOLOR='GREEN',
$
TYPE=DATA,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
	 BACKCOLOR=(RGB(235 235 240) RGB(255 255 255)),
     JUSTIFY=CENTER,
$
TYPE=DATA,
	 COLUMN=N3,
     FONT='CALIBRI',
     SIZE=10,
     COLOR=RGB(0 51 102),
     JUSTIFY=LEFT,
$
TYPE=TITLE,
     FONT='CALIBRI',
     SIZE=14,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 51 102),
     STYLE=-UNDERLINE+BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
TYPE=HEADING,
     SIZE=14,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR=RGB(0 32 95),
$
-*TYPE=DATA,COLUMN=N2,IMAGE=(ICON_PATH),SIZE=(.3 .3),$
TYPE=TABHEADING,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     COLOR=RGB(75 75 75),
     STYLE=BOLD,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
	 JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     WIDTH=4.181,
	 JUSTIFY=CENTER,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=1,
     WIDTH=1.681,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='WHITE',
     WIDTH=4.181,
$
TYPE=TABHEADING,
     IMAGE=IBFS:/WFC/Repository/Images/Logo.jpg,
     POSITION=(+0.041667 +0.000000),
     SIZE=(1.200000 1.000000),
$
ENDSTYLE
-GOTSTYLE
END



WF8202M,Windows 7,8,10
HTM,PDF,EXCEL