BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Coa_SAs
Fluorite | Level 6

Hi all,

I am creating ODS HTML report, one of the variable not displaying correctly in the HTML output.

For Eg: ID has to display as '07008E08675 ' instead of its displaying as  1.7977E+308

I used  style={HTMLSTYLE="VND.MS-EXCEL.NUMBERFORMAT:@"}

style=[htmlstyle="MSO-NUMBER-FORMAT:\@"]

Please help me on this, Thanks In advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  I don't know where you got the "VND.MS-EXCEL.NUMBERFORMAT"...it was my understanding that you needed the second example, not the first. Please see this paper (page 3) http://support.sas.com/resources/papers/proceedings11/266-2011.pdf

  Generally my recommendation is that you generate Microsoft "friendly" HTML by using the MSOFFICE2K destination. Microsoft did NOT like the HTML4 method of using style information that is contained in ODS HTML.  So, my recommendations would be that you

1) switch to ODS MSOFFICE2K as the destination (which generates Microsoft HTML) and

2) use the form of HTMLSTYLE= that is shown on page 3 of the paper.

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  I don't know where you got the "VND.MS-EXCEL.NUMBERFORMAT"...it was my understanding that you needed the second example, not the first. Please see this paper (page 3) http://support.sas.com/resources/papers/proceedings11/266-2011.pdf

  Generally my recommendation is that you generate Microsoft "friendly" HTML by using the MSOFFICE2K destination. Microsoft did NOT like the HTML4 method of using style information that is contained in ODS HTML.  So, my recommendations would be that you

1) switch to ODS MSOFFICE2K as the destination (which generates Microsoft HTML) and

2) use the form of HTMLSTYLE= that is shown on page 3 of the paper.

cynthia

Coa_SAs
Fluorite | Level 6

Thanks a Cynthia, The paper helped me a lot, really appreciate your quick response.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2862 views
  • 0 likes
  • 2 in conversation