Focal Point
[CASE-OPENED] SMTP EXL2K File - Missing Stylesheet Effects.

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

July 07, 2009, 04:19 PM
David Briars
[CASE-OPENED] SMTP EXL2K File - Missing Stylesheet Effects.
Greetings,

I am creating an EXL2K formatted file, on FOCUS for z/OS, v7.6.4, with the following code:

SET COMPOUND=BYTOC
-RUN
TABLE FILE CAR
"Car Report"
"Country: <COUNTRY"
PRINT SALES
BY    COUNTRY
BY    CAR
ON TABLE HOLD AS CAROUT FORMAT EXL2K
ON TABLE SET STYLE *
 TYPE=HEADING, STYLE=BOLD, COLOR=RED, BACKCOLOR=RGB(255 255 204),$
 TYPE=TITLE,   STYLE=BOLD, COLOR=RED, BACKCOLOR=RGB(255 255 204),$
ENDSTYLE
END

When I FTP the file down to the LAN, and then open it in Excel, I see the content and formatting A-OK.

When I email the file as an attachment, open the attachment in Excel, I see the content, but I do not see the formatting. That is, I do not see the results of the stylesheet commands.

Upon review of the EXL2K file I see CSS code like the following:

.xl102
        {mso-style-parent:style0;
        color:#FF0000;
        font-size:10.0pt;
        font-weight:700;
        font-family:"ARIAL";
        background:#FFFFCC;
        mso-pattern:auto none;
        white-space:normal;
        mso-font-charset:0;}  

In SMTP, the '.' at a beginning of a line is a way to terminate a command.

I MANUALLY EDITED the EXL2K mainframe file and added a period, for every class:

..xl102
        {mso-style-parent:style0;
        color:#FF0000;
        font-size:10.0pt;
        font-weight:700;
        font-family:"ARIAL";
        background:#FFFFCC;
        mso-pattern:auto none;
        white-space:normal;
        mso-font-charset:0;}  

The second '.' acts as an escape for the first one.

I then sent the edited file, through SMTP.

When I opened the EXL2K attachment, I saw the stylesheet results A-OK.

Does anyone know of a workaround for this scenario, or perhaps I am missing something?

I imagine I could post-process the file, but I would prefer not to, if possible.

I have a case open with IB on this scenario, but I thought I would try the Forum as well.

Thanks,
Dave

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




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
July 08, 2009, 03:16 AM
GamP
Would it be possible to zip it before mailing it? That would effectively prevent the SMTP protocol from interpreting the contents of the file.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
July 08, 2009, 09:18 AM
PBrightwell
You might also change the HOLD to PCHOLD


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
July 08, 2009, 09:23 AM
Tony A
Pat,

He's on mainframe and therefore has to get the file to his users on Windoze (I guess) so PCHOLD is of no use to him.

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 09, 2009, 09:21 AM
PBrightwell
Good Catch Tony, and totally true. I missed that this was for Z/OS.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes