Focal Point
Spot Marker not working in PDF

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

May 01, 2005, 09:14 PM
Kamesh
Spot Marker not working in PDF
I'm trying to use spot marker in my pdf report but it not working.
In the given example, the heading has to split has 3 columns and each column has to be in different color(green, red, gray). But it is giving everything has green color.

Note: This code works fine in HTML.


Eg:
TABLE FILE GGSALES
SUM UNITS DOLLARS
BY CATEGORY
BY PRODUCT
HEADING
"FIRST QUARTER <+0>SALES <+0>REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,OBJECT=TEXT,ITEM=1,FONT=ARIAL,BACKCOLOR=GREEN,$
TYPE=HEADING,OBJECT=TEXT,ITEM=2,SIZE=14,BACKCOLOR=RED,$
TYPE=HEADING,OBJECT=TEXT,ITEM=3,STYLE=BOLD,BACKCOLOR=GRAY,$
ENDSTYLE
END
May 02, 2005, 12:42 PM
Prarie
That will only work in HTML. Try using
<+n or <-n to align in PDF.
May 02, 2005, 01:02 PM
Kamesh
<+n or <-n used as to find the starting position of the character but I want to make some text as bold and some text to give backcolor.
May 02, 2005, 01:43 PM
Prarie
That particular method you were using works in Subhead...if you somehow could use that.
May 02, 2005, 02:29 PM
dwf
Try adding line=1 to each of the lines. Like this:

TYPE=HEADING,OBJECT=TEXT,LINE=1,ITEM=1,FONT=ARIAL,BACKCOLOR=GREEN,$

If this works, it will only affect the page heading, of course - not the data.
May 02, 2005, 02:43 PM
Francis Mariani
BACKCOLOR for a segment of a HEADING line will not work in PDF.

You may have noticed that FONT, COLOR and some other styling does work, BACKCOLOR does not.

Maybe the next release...
May 02, 2005, 03:04 PM
Kamesh
No, it's not working for anything. I dont need Backcolor in my report, just gave that to identify the column difference as an example.
May 02, 2005, 03:13 PM
Francis Mariani
This illustrates that some styling does work:

TABLE FILE GGSALES
SUM UNITS DOLLARS
BY CATEGORY
BY PRODUCT
HEADING
"FIRST QUARTER <+0>SALES <+0>REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=1,FONT=ARIAL,SIZE=20,COLOR=GREEN,$
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=2,FONT=TIMES,SIZE=15,COLOR=RED,$
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=3,SIZE=30,STYLE=BOLD,COLOR=BLUE,$
ENDSTYLE
END
May 17, 2005, 10:52 PM
<delvegas>
Try this code, and it will definetly work..

TABLE FILE GGSALES
SUM UNITS DOLLARS
BY CATEGORY
BY PRODUCT
HEADING
"FIRST QUARTER <+0>SALES <+0>REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,LINE=1,OBJECT=TEXT,FONT=ARIAL,SIZE=12,COLOR=GREEN,$
TYPE=DATA,COLUMN=1,FONT=ARIAL,SIZE=10,COLOR=GREEN,$
TYPE=DATA,COLUMN=2,FONT=TIMES,SIZE=10,COLOR=RED,$
TYPE=DATA,COLUMN=3,STYLE=BOLD,SIZE=10,COLOR=BLUE,$
TYPE=DATA,COLUMN=4,STYLE=BOLD,SIZE=10,COLOR=GREY,$
ENDSTYLE
END

lvegas