Focal Point
Getting unwanted HTML tags.

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

November 29, 2007, 04:46 AM
<B_B>
Getting unwanted HTML tags.
I am getting extra unwanted HTML tags like - THE PARAGRAPH TAG etc in my output format which is in PDF. Surprisingly, if i change my output format to HTML (i.e.ON TABLE PCHOLD FORMAT HTML) then i do not get these unwanted tags at all.

Please suggest how do i get rid of these unwanted HTML tags using output format as PDF only.

Web Focus Version -7.1.4

Thanks,
Bhavna.

This message has been edited. Last edited by: <B_B>,
November 29, 2007, 09:49 AM
Kamesh
Change this line as DONTPRINT/A1='Y' (just for test) or comment it and try run your report.

DONTPRINT/A1 = IF EDIT(QUES_T,'9999') EQ ' ---' THEN 'N' ELSE 'Y' ;

Please let me know your test.


WFConsultant

WF 8105M on Win7/Tomcat
November 29, 2007, 11:53 PM
<B_B>
Hi,

Thanks Kamesh for your response. I have tried both the ways. But, there is no change in output.

Please suggest an alternative way.

Thanks,
Bhavna.
November 30, 2007, 02:26 AM
Tony A
quote:
ON ASES_SECT_N SUBHEAD
""From: &BEGIN_DATE To: &END_DATE "
"Total Cases Reviewed: " "

This code is incorrect, make sure that it isn't a as a result of when you pasted it into the forum! e.g. If it exists in your code then it is likely causing a problem.

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 
November 30, 2007, 03:58 AM
<B_B>
There is a drill option in my project. If i drill down , it gets me to this fex(as in the code pasted at the top). And it also displays extra HTML tags. I want to get rid of these extra HTML tags.
November 30, 2007, 08:46 AM
Brian Suter
So if you run the fex above, you get a valid PDF output ... but some where in the middle you see a string like
 <p> 
? Is it in the data?

If you have the paragraph tag in your data - format html will hide it ... run this fex:
  DEFINE FILE CAR 
FRED/A20=IF COUNTRY EQ 'FRANCE' THEN '<p>ZZ' ELSE IF COUNTRY EQ 'JAPAN'
  THEN 'X<P>Y' ELSE COUNTRY;
END
TABLE FILE CAR PRINT COUNTRY FRED COUNTRY
ON TABLE PCHOLD FORMAT HTML
END


You will see that when country is france the ZZ cell shows no oddities. Bit for JAPAN you will see a wrap in the cell. Change format to WP or PDF and you will see the tags.


Brian Suter
VP WebFOCUS Product Development
November 30, 2007, 10:19 AM
Kamesh
Hello Bhavna,

Where are you getting these unwanted tags, after displayed your report or inbetween your reports?

try these,
1) Remove the HTMLCSS ON when you hold the table.
2)-IF &LINES EQ 0 THEN GOTO XXIT ELSE GOTO ENDIT;
-XXIT
-HTMLFORM ERRPGCOMP-1.htm
-ENDIT
-EXIT

Hope it helps,


WFConsultant

WF 8105M on Win7/Tomcat
November 30, 2007, 12:53 PM
Darin Lee
no need to specify the .htm

Also, this issue has two identical postings. Maybe remove one of them to avoid confusion


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat