December 26, 2006, 11:52 AM
Code DiggerCOMPOUND reporting in HTML format
The report consists of summary and detail sections(HTML format), it is required to repeat this combination of summary and detail for various values of an input parameter. The Table requests (one for summary and the other for detail each one having its own stylesheet) are thus being placed in a loop, but by doing so the stylesheets are behaving strangely. The style sheet content of one section is being reflected on the other.(Though the data is coming fine). Is there any way of avoiding this?
The code is somewhat like this
-SET &V_CNT = 0;
-NEXTLOC
TABLE FILE Request printing for summary IN html FORMAT
TABLE FILE Request printing for detail in HTML format
-SET &V_CNT = &V_CNT+1 ;
-IF &V_CNT NE 5 GOTO NEXTLOC ;
January 02, 2007, 03:44 AM
Tony AUsing internal style sheets for each report will hit the problem of reuse of style names (.x1 etc.). Because each report may / will use the same style name for different cells you will have problems as you have seen.
To overcome this you should use external stylesheets and refer to them within your reports using the CLASS= syntax within the ON TABLE SET STYLE * section of your code.
T
Happy New Year ALL
January 03, 2007, 05:52 AM
kalyanswarnaHi,
SAVE(ON TABLE HOLD FORMAT HTMTABLE AS REPORT1) those master and Detail Reports in HTMTABLE format and use the following code to see all the reports in One HTML Page.
-HTMLFORM BEGIN
!IBI.FIL.REPORT1;
!IBI.FIL.REPORT2;
-HTMLFORM END
Thanks,