[CLOSED]add/include the Image/logo & align the rpt heading to centre in PDF report
Hi,
Iam trying to add a logo or image to the PDF report output but am unable to do so. Also am trying to make the report heading aligned to be center but not able to achieve this as well.
Any help with the sample example on how to do this would be greatly appreciated!
Thanks a lot in advance!
Regards!This message has been edited. Last edited by: info4pal,
Yes I did look into the link which you had provided Ram but its not working.
Waz and Ram ... Please find my code below : TABLE FILE CAR PRINT * ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=TABHEADING, IMAGE=IBFS:/wfdev/EDA/EDASERVE/APPPATH/fldr/abc_im.jpeg, POSITION=(.25 .10), SIZE=(1 1), $ ENDSTYLE END -EXIT
THis is the error message am getting : TABLE FILE CAR PRINT * ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=TABHEADING, IBFS:/wfdev/EDA/EDASERVE/APPPATH/fldr/abc_im.jpeg, POSITION=(.25 .10), SIZE=(1 1), $ ENDSTYLE END -EXIT
Try placing it in REPORT instead of TABHEADING. From your code, there is no TABHEAD component.
TABLE FILE CAR PRINT * ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT, IMAGE=IBFS:/wfdev/EDA/EDASERVE/APPPATH/fldr/abc_im.jpeg, POSITION=(.25 .10), SIZE=(1 1), $ ENDSTYLE END -EXIT
I tried it on the report but it is not working. Please find the error message below :
(FOC757) WARNING. YOU REQUESTED PRINT * OR COUNT * FOR A MULTIPATH FILE 0 ERROR AT OR NEAR LINE 8 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC3251) IMAGE FILE UNREADABLE OR INVALID: null
If you put the image in the same app path as the fex - you should be able to run this below. You will have to play with the position and size.
TABLE FILE CAR
PRINT CAR SEATS COUNTRY COUNTRY
BY COUNTRY
HEADING
" "
"</5"
" "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,
IMAGE=MYIMAGE.gif,
POSITION=(+2.700000 +0.000000),
SIZE=(1.100000 1.10000),
$
ENDSTYLE
END
January 27, 2015, 07:39 AM
info4pal
Hi ,
I tried placing my Jpeg image in the same app path and am still getting the below error message: 0 ERROR AT OR NEAR LINE 17 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC3251) IMAGE FILE UNREADABLE OR INVALID: my_image.jpeg
Then perhaps the jpg is corrupt to a point that WF has problems reading it, but other tools work ??
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
January 29, 2015, 03:23 AM
Tony A
quote:
using jpg's for many years and they have always worked.
I was only saying what I could find within documentation - never said that it was exhaustive
It's also why I suggested rendering in HTML to check the image is able to be read.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
January 29, 2015, 03:44 PM
Waz
quote:
I was only saying what I could find within documentation
Just concerned that the documentation is in genral the source of truth, and although it would probably not happen......
......... Code tightening
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
January 30, 2015, 05:21 AM
Tony A
quote:
never said that it was exhaustive
T
February 01, 2015, 03:23 PM
Waz
Oh well, hopefully its just another case of general paranoia.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
February 02, 2015, 02:35 AM
Tony A
quote:
Last edited by: info4pal, 28 January 2015 12:20 PM
As IP changed the post subject to [CLOSED] shortly after suggesting converting to a gif, I am guessing that any potential image corruption (or otherwise ) was overcome by the conversion and usage of a gif.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10