Focal Point
[CLOSED] Heading for the report

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

March 30, 2012, 12:32 PM
BI_Developer
[CLOSED] Heading for the report
Hi

This is my code. I am trying to add heading for this report with logos and text. I tried doing compound report but doesn't work. Can someone provide suggestions on this?

Thank you

 
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
		UNITS=IN,
		PAGESIZE=LETTER,
		LEFTMARGIN=0.256,
		TOPMARGIN=0.5,
		PAGEMATRIX=(2 6),
		ELEMENT=(4 1),
		GUTTER=(0.188 0),
$
END

This message has been edited. Last edited by: Kerry,


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
March 30, 2012, 02:50 PM
Prarie
Is the Logo an image?
March 30, 2012, 03:13 PM
BI_Developer
quote:
Originally posted by Prarie:
Is the Logo an image?

Yes, there are 2 images and lines of text in between..


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
March 30, 2012, 03:26 PM
Prarie
You will need to call the image - something like this. Make sure it's in your app path

  TYPE=HEADING,        IMAGE=logo_color.gif,     POSITION=(+7.500000 +0.000000),     SIZE=(2.000000 0.280000),$

March 30, 2012, 03:31 PM
BI_Developer
I tried these long back. this doesn't work with the code above.
quote:
Originally posted by Prarie:
You will need to call the image - something like this. Make sure it's in your app path

  TYPE=HEADING,        IMAGE=logo_color.gif,     POSITION=(+7.500000 +0.000000),     SIZE=(2.000000 0.280000),$



WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
April 01, 2012, 06:01 PM
Waz
Is the image in the path ?

For PDF the image must be available in the APP PATH.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 02, 2012, 11:28 AM
BI_Developer
Hi Waz

Its not problem with the path of image. Image is displayed but it comes above each label as this is not PRINT statement report. I just need them on top of each page.

Thank you
quote:
Originally posted by Waz:
Is the image in the path ?

For PDF the image must be available in the APP PATH.



WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
April 02, 2012, 03:54 PM
TexasStingray
If you are only going to support PDF output you could user the procedure composer and set it up to get want you want.




Scott

Where did you want the logo ?

All you should need to do is play with the position.

TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,PAGESIZE=LETTER,LEFTMARGIN=0.256,TOPMARGIN=0.5,PAGEMATRIX=(2 6),ELEMENT=(4 1),GUTTER=(0.188 0),$
TYPE=HEADING,        IMAGE=smplogo1.gif,     POSITION=(+1.800000 +0.000000),     SIZE=(1.000000 0.280000),$
END



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

Hi Waz

I am trying to have the logo only on top of each page once, not with each label. This is what I am having difficulties with.
quote:
Originally posted by Waz:
Where did you want the logo ?

All you should need to do is play with the position.

TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,PAGESIZE=LETTER,LEFTMARGIN=0.256,TOPMARGIN=0.5,PAGEMATRIX=(2 6),ELEMENT=(4 1),GUTTER=(0.188 0),$
TYPE=HEADING,        IMAGE=smplogo1.gif,     POSITION=(+1.800000 +0.000000),     SIZE=(1.000000 0.280000),$
END



WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
hi

I tried this option before posting here. When I do it in the composer by inserting images and then the report, somehow the report format is getting messep up. It doesn't happen with other reports, just this kind of report with mailing labels.
quote:
Originally posted by TexasStingray:
If you are only going to support PDF output you could user the procedure composer and set it up to get want you want.



WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
Ah, once on the page.

How about this:
TABLE FILE EMPLOYEE
SUM COMPUTE CNTR = LAST CNTR + 1 ; NOPRINT
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,PAGESIZE=LETTER,LEFTMARGIN=0.256,TOPMARGIN=0.5,PAGEMATRIX=(2 6),ELEMENT=(4 1),GUTTER=(0.188 0),$
TYPE=REPORT, IMAGE=smplogo1.gif, POSITION=(3.800000 0.100000),     SIZE=(1.000000 0.280000), WHEN=CNTR EQ 1, $
END


You can adjust the WHEN or CNTR to put an image on each page is it goes over.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!