Focal Point
[Solved] Empty Rows in Excel if we use HTMLCSS ON

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

July 28, 2017, 11:15 AM
Dev
[Solved] Empty Rows in Excel if we use HTMLCSS ON
Hi,

I have to display the report in excel. Below is my sample code contains more than 100...
If I am using SET HTMLCSS ON; then I am getting empty rows in mid of each page (line no 55...). If I set CSS OFF then am not getting empty rows; But the look and feel/font everything is changed completely.

Why am using EXL97 is: this format have option to show the date formats AS DATE in the excel file. other formats are showing as General instead of Date. (We are using this excel data to paste in another macro excel file)
I don't see any option to display the date format as date format in Excel file using XLS & XLSX PCHOLD formats. If we have please share...

1. How to avoid the empty Rows in each page of excel in single sheet?
2. Without CSS how to achieve the styling? Whatever we used in styling it is not applying in the output.

Please share your thoughts will help to solve this issue Smiler

 
TABLE FILE SYSCOLUM
PRINT TBNAME AS ''  TBCREATOR AS '' PARENT	AS ''  TAG	AS ''  
FILENAME AS ''  LONGDESC AS ''  REFERENCE AS ''	PROPERTY AS ''
COMPUTE DAT/YYMD = &YYMD; AS ''
WHERE RECORDLIMIT EQ 99
ON TABLE SET PAGE NOPAGE
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
-*ON TABLE HOLD AS RREPORT FORMAT HTMTABLE
ON TABLE PCHOLD FORMAT EXL97
ON TABLE SET STYLE *
     UNITS=IN,SQUEEZE=ON,ORIENTATION=LANDSCAPE,$
TYPE=REPORT, FONT='Calibri', SIZE=11, COLOR='BLACK', STYLE=NORMAL,BORDER=OFF,$
ENDSTYLE
END
-RUN

-*SET HTMLFORMTYPE=XLS
-*-RUN
-*-HTMLFORM BEGIN
-*<BODY>
-*!IBI.FIL.RREPORT;
-*</BODY>
-*-HTMLFORM END
 

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


8202, 8105M, 7.7.03
July 28, 2017, 12:48 PM
Doug
What are the rows which would be empty in your example, that you do not want to see in the output?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
July 31, 2017, 06:17 AM
Dev
If you execute my code. You can see the empty rows in line no: 55, 110,... +55 (remove the record limit and see)
It is splitting the page automatically for each 55 rows.


8202, 8105M, 7.7.03
July 31, 2017, 06:32 AM
Tony A
Look at using SET LINES = 999999 to prevent paging. You could also use ON TABLE SET LINES 999999

Note, for "unpaged" the requirement in 6 x 9s, no more no less.

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 
July 31, 2017, 09:10 AM
Dev
Thanks Tony Smiler

Its coming as I expected...


8202, 8105M, 7.7.03