Focal Point
Images and text in heading

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

January 25, 2012, 04:08 PM
Enigma006
Images and text in heading
Hi

I am trying to display 2 images and multiple lines of text in heading. Problem is coming with alignment. I am trying to get it similar to this.
  

               TEXT1
IMAGE1         TEXT2           IMAGE2
               TEXT3
               TEXT4     



Basically all 4 lines of text should be in middle of both images. I am facing problems with this. any tips on this plz?
I tried HEADLINE and spot markers but could not get it right. Able to get this with one line of text though bcz its at the bottom.

Thank u


8.1.05
HTML,PDF,EXL2K, Active, All
January 25, 2012, 04:11 PM
Tom Flynn
Just as the manual displays, you play with the position values:
 
TYPE=HEADING, IMAGE=image1.gif, POSITION=(0.00 -0.25), SIZE=(2.30 .55),$
TYPE=HEADING, IMAGE=image2.gif, POSITION=(4.75 -0.25), SIZE=(2.25 .55),$



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
January 25, 2012, 05:21 PM
Enigma006
thanks to,..this seems to work for one case. I will test others accordingly
quote:
Originally posted by Tom Flynn:
Just as the manual displays, you play with the position values:
 
TYPE=HEADING, IMAGE=image1.gif, POSITION=(0.00 -0.25), SIZE=(2.30 .55),$
TYPE=HEADING, IMAGE=image2.gif, POSITION=(4.75 -0.25), SIZE=(2.25 .55),$



8.1.05
HTML,PDF,EXL2K, Active, All
January 25, 2012, 05:45 PM
Enigma006
this fails for PDF I believe.2 page report split in 63 pages..lol..
quote:
Originally posted by Tom Flynn:
Just as the manual displays, you play with the position values:
 
TYPE=HEADING, IMAGE=image1.gif, POSITION=(0.00 -0.25), SIZE=(2.30 .55),$
TYPE=HEADING, IMAGE=image2.gif, POSITION=(4.75 -0.25), SIZE=(2.25 .55),$



8.1.05
HTML,PDF,EXL2K, Active, All
January 25, 2012, 05:49 PM
Tom Flynn
Really? Fails for PDF? No it doesn't. I have over 15 reports with images included that go to PDF, EXCEL and PowerPoint, depending on user selection...

2 page report that splits into 63 pages??? That would be caused by the programmer...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
January 26, 2012, 02:34 PM
Enigma006
Hey Tom

Can u plz post sample code with a CAR file with 2 images in the heading..that would help me a lot.

Thank you


8.1.05
HTML,PDF,EXL2K, Active, All
January 26, 2012, 02:48 PM
Tom Flynn
Pretty simple:
 
APP APPENDPATH IBISAMP
-RUN
TABLE FILE CAR
HEADING
"Text Line 1 to be Centered"
"Text Line 2 to be Centered"
"Text Line 3 to be Centered"
"Text Line 4 to be Centered"
"</3"
SUM
   RETAIL_COST/P20.2MC
   DEALER_COST/P20.2MC
    COMPUTE PROFIT/P20.2MC = RETAIL_COST - DEALER_COST;
  BY COUNTRY
  BY CAR
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
  UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=10,$
TYPE=HEADING, STYLE=BOLD, JUSTIFY=CENTER,$
TYPE=HEADING, IMAGE=smplogo1.gif, POSITION=(0.00 -0.05), SIZE=(1.25 .50),$
TYPE=HEADING, IMAGE=smplogo1.gif, POSITION=(3.85 -0.05), SIZE=(1.25 .50),$
ENDSTYLE
END
-EXIT



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe