<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Formatting Spreadsheet e-mail attachments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976666#M400035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for these pointers. It is very much appreciated. My apologies for the slow response but I took a long weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to use the XML route. To start of with I created a very simple spreadsheet consisting of 4 cells.This is displayed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heading1	Heading2&lt;/P&gt;&lt;P&gt;1	2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cell headings had a different colour and cell B1 was bold. I saved the  spreadsheet as XML and looked at the data in notepad. I include this below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html xmlns:o="urn:schemas-microsoft-com:office:office"&lt;/P&gt;&lt;P&gt;xmlns:x="urn:schemas-microsoft-com:office:excel"&lt;/P&gt;&lt;P&gt;xmlns="http://www.w3.org/TR/REC-html40"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta http-equiv=Content-Type content="text/html; charset=windows-1252"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta name=ProgId content=Excel.Sheet&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta name=Generator content="Microsoft Excel 9"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel=File-List href="./XML%20Format_files/filelist.xml"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel=Edit-Time-Data href="./XML%20Format_files/editdata.mso"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel=OLE-Object-Data href="./XML%20Format_files/oledata.mso"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if gte mso 9]&amp;gt;&amp;lt;xml&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;o:DocumentProperties&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Author&amp;gt;John Raymond Cotton&amp;lt;/o:Author&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:LastAuthor&amp;gt;John Raymond Cotton&amp;lt;/o:LastAuthor&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Created&amp;gt;2007-02-26T09:01:34Z&amp;lt;/o:Created&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:LastSaved&amp;gt;2007-02-26T09:09:05Z&amp;lt;/o:LastSaved&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Company&amp;gt;Capita Insurance Services&amp;lt;/o:Company&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Version&amp;gt;9.6926&amp;lt;/o:Version&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/o:DocumentProperties&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;o:OfficeDocumentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:DownloadComponents/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:LocationOfComponents HRef="file:msowc.cab"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/o:OfficeDocumentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xml&amp;gt;&amp;lt;![endif]--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--table&lt;/P&gt;&lt;P&gt;	{mso-displayed-decimal-separator:"\.";&lt;/P&gt;&lt;P&gt;	mso-displayed-thousand-separator:"\,";}&lt;/P&gt;&lt;P&gt;@page&lt;/P&gt;&lt;P&gt;	&lt;SPAN __jive_macro_name="margin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;tr&lt;/P&gt;&lt;P&gt;	{mso-height-source:auto;}&lt;/P&gt;&lt;P&gt;col&lt;/P&gt;&lt;P&gt;	{mso-width-source:auto;}&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;	{mso-data-placement:same-cell;}&lt;/P&gt;&lt;P&gt;.style0&lt;/P&gt;&lt;P&gt;	{mso-number-format:General;&lt;/P&gt;&lt;P&gt;	text-align:general;&lt;/P&gt;&lt;P&gt;	vertical-align:bottom;&lt;/P&gt;&lt;P&gt;	white-space:nowrap;&lt;/P&gt;&lt;P&gt;	mso-rotate:0;&lt;/P&gt;&lt;P&gt;	mso-background-source:auto;&lt;/P&gt;&lt;P&gt;	mso-pattern:auto;&lt;/P&gt;&lt;P&gt;	color:windowtext;&lt;/P&gt;&lt;P&gt;	font-size:10.0pt;&lt;/P&gt;&lt;P&gt;	font-weight:400;&lt;/P&gt;&lt;P&gt;	font-style:normal;&lt;/P&gt;&lt;P&gt;	text-decoration:none;&lt;/P&gt;&lt;P&gt;	font-family:Arial;&lt;/P&gt;&lt;P&gt;	mso-generic-font-family:auto;&lt;/P&gt;&lt;P&gt;	mso-font-charset:0;&lt;/P&gt;&lt;P&gt;	border:none;&lt;/P&gt;&lt;P&gt;	mso-protection:locked visible;&lt;/P&gt;&lt;P&gt;	mso-style-name:Normal;&lt;/P&gt;&lt;P&gt;	mso-style-id:0;}&lt;/P&gt;&lt;P&gt;td&lt;/P&gt;&lt;P&gt;	{mso-style-parent:style0;&lt;/P&gt;&lt;P&gt;	padding-top:1px;&lt;/P&gt;&lt;P&gt;	padding-right:1px;&lt;/P&gt;&lt;P&gt;	padding-left:1px;&lt;/P&gt;&lt;P&gt;	mso-ignore:padding;&lt;/P&gt;&lt;P&gt;	color:windowtext;&lt;/P&gt;&lt;P&gt;	font-size:10.0pt;&lt;/P&gt;&lt;P&gt;	font-weight:400;&lt;/P&gt;&lt;P&gt;	font-style:normal;&lt;/P&gt;&lt;P&gt;	text-decoration:none;&lt;/P&gt;&lt;P&gt;	font-family:Arial;&lt;/P&gt;&lt;P&gt;	mso-generic-font-family:auto;&lt;/P&gt;&lt;P&gt;	mso-font-charset:0;&lt;/P&gt;&lt;P&gt;	mso-number-format:General;&lt;/P&gt;&lt;P&gt;	text-align:general;&lt;/P&gt;&lt;P&gt;	vertical-align:bottom;&lt;/P&gt;&lt;P&gt;	border:none;&lt;/P&gt;&lt;P&gt;	mso-background-source:auto;&lt;/P&gt;&lt;P&gt;	mso-pattern:auto;&lt;/P&gt;&lt;P&gt;	mso-protection:locked visible;&lt;/P&gt;&lt;P&gt;	white-space:nowrap;&lt;/P&gt;&lt;P&gt;	mso-rotate:0;}&lt;/P&gt;&lt;P&gt;.xl24&lt;/P&gt;&lt;P&gt;	{mso-style-parent:style0;&lt;/P&gt;&lt;P&gt;	background:#FFFF99;&lt;/P&gt;&lt;P&gt;	mso-pattern:auto none;}&lt;/P&gt;&lt;P&gt;.xl25&lt;/P&gt;&lt;P&gt;	{mso-style-parent:style0;&lt;/P&gt;&lt;P&gt;	font-weight:700;&lt;/P&gt;&lt;P&gt;	font-family:Arial, sans-serif;&lt;/P&gt;&lt;P&gt;	mso-font-charset:0;}&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if gte mso 9]&amp;gt;&amp;lt;xml&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;x:ExcelWorkbook&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:ExcelWorksheets&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:Name&amp;gt;Sheet1&amp;lt;/x:Name&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:Print&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:ValidPrinterInfo/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:PaperSizeIndex&amp;gt;9&amp;lt;/x:PaperSizeIndex&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:HorizontalResolution&amp;gt;600&amp;lt;/x:HorizontalResolution&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:VerticalResolution&amp;gt;600&amp;lt;/x:VerticalResolution&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;/x:Print&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:Selected/&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectContents&amp;gt;False&amp;lt;/x:ProtectContents&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectObjects&amp;gt;False&amp;lt;/x:ProtectObjects&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectScenarios&amp;gt;False&amp;lt;/x:ProtectScenarios&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:Name&amp;gt;Sheet2&amp;lt;/x:Name&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectContents&amp;gt;False&amp;lt;/x:ProtectContents&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectObjects&amp;gt;False&amp;lt;/x:ProtectObjects&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectScenarios&amp;gt;False&amp;lt;/x:ProtectScenarios&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:Name&amp;gt;Sheet3&amp;lt;/x:Name&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectContents&amp;gt;False&amp;lt;/x:ProtectContents&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectObjects&amp;gt;False&amp;lt;/x:ProtectObjects&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectScenarios&amp;gt;False&amp;lt;/x:ProtectScenarios&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/x:ExcelWorksheets&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowHeight&amp;gt;7680&amp;lt;/x:WindowHeight&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowWidth&amp;gt;14700&amp;lt;/x:WindowWidth&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowTopX&amp;gt;600&amp;lt;/x:WindowTopX&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowTopY&amp;gt;510&amp;lt;/x:WindowTopY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:ProtectStructure&amp;gt;False&amp;lt;/x:ProtectStructure&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:ProtectWindows&amp;gt;False&amp;lt;/x:ProtectWindows&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/x:ExcelWorkbook&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xml&amp;gt;&amp;lt;![endif]--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body link=blue vlink=purple&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table x:str border=0 cellpadding=0 cellspacing=0 width=128 style='border-collapse:&lt;/P&gt;&lt;P&gt; collapse;table-layout:fixed;width:96pt'&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;col width=64 span=2 style='width:48pt'&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;tr height=17 style='height:12.75pt'&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td height=17 class=xl24 width=64 style='height:12.75pt;width:48pt'&amp;gt;Heading1&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td class=xl24 width=64 style='width:48pt'&amp;gt;Heading2&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;tr height=17 style='height:12.75pt'&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td height=17 class=xl25 align=right style='height:12.75pt' x:num&amp;gt;1&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td align=right x:num&amp;gt;2&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;![if supportMisalignedColumns]&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;tr height=0 style='display:none'&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td width=64 style='width:48pt'&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td width=64 style='width:48pt'&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;![endif]&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I cannot see where the data for the 4 cells and their respective formats are held. You mention that it is difficult to set your first spreadsheet up. Would be possible for you to provide me with code that will demonstrate how to set up a basic spreadsheet. I would be very interested in seeing how you formatted individual cells and set column widths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure you are very busy so any further assistance would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 13:53:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T13:53:12Z</dc:date>
    <item>
      <title>Formatting Spreadsheet e-mail attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976664#M400033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to format a spreadsheet that is included as an attachment on an e-mail. For example, how do you make some of the cells bold, determine the column width and determine the colour of the cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently creating the attachment using function module SO_DOCUMENT_SEND_API1. I would prefer to use the business communication server classes instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 12:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976664#M400033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T12:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Spreadsheet e-mail attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976665#M400034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you are using OLE to make your Excel(?) file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative approach is to use XML.  The Microsoft website gives info on the tags needed.  You can also create an Excel file, save it as XML, and inspect it in Notepad.  A bonus of not using OLE is that you can run the ABAP in the background, since you are just creating a text attachment (XML).  The user probably wouldn't know that it was not the usual type of .xls file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the XML approach I've been able to format individual cells, set column widths, and do a number of levels of subtotalling via Excel formulas.&lt;/P&gt;&lt;P&gt;Using styles for cell formats, you can have e.g. negative amounts in red.&lt;/P&gt;&lt;P&gt;I've also been able to give the Excel file a second sheet in which the report selection criteria are given.  That is a nice touch.&lt;/P&gt;&lt;P&gt;Over all, the XML approach gives pleasing results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some snags with the XML approach:&lt;/P&gt;&lt;P&gt;It is a lot of work doing your first one.&lt;/P&gt;&lt;P&gt;It is a lot of work setting everything up for this so that most of it is easily re-usable.  I've set up a number of custom tables for styles etc, and a function module for appending the XML code for one sheet to the XML code, and an INCLUDE for the top of the XML.&lt;/P&gt;&lt;P&gt;It is very hard to make your ABAP calculate the column widths needed.  I make do with a rough calculation: width = 6 times max characters / cell.&lt;/P&gt;&lt;P&gt;For subtotalling, Excel does not give the normal left-hand frame (with its vertical lines, plusses &amp;amp; minusses) that can be used for collapsing/expanding the subtotalled data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 15:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976665#M400034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Spreadsheet e-mail attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976666#M400035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for these pointers. It is very much appreciated. My apologies for the slow response but I took a long weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to use the XML route. To start of with I created a very simple spreadsheet consisting of 4 cells.This is displayed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heading1	Heading2&lt;/P&gt;&lt;P&gt;1	2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cell headings had a different colour and cell B1 was bold. I saved the  spreadsheet as XML and looked at the data in notepad. I include this below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html xmlns:o="urn:schemas-microsoft-com:office:office"&lt;/P&gt;&lt;P&gt;xmlns:x="urn:schemas-microsoft-com:office:excel"&lt;/P&gt;&lt;P&gt;xmlns="http://www.w3.org/TR/REC-html40"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta http-equiv=Content-Type content="text/html; charset=windows-1252"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta name=ProgId content=Excel.Sheet&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta name=Generator content="Microsoft Excel 9"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel=File-List href="./XML%20Format_files/filelist.xml"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel=Edit-Time-Data href="./XML%20Format_files/editdata.mso"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel=OLE-Object-Data href="./XML%20Format_files/oledata.mso"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if gte mso 9]&amp;gt;&amp;lt;xml&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;o:DocumentProperties&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Author&amp;gt;John Raymond Cotton&amp;lt;/o:Author&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:LastAuthor&amp;gt;John Raymond Cotton&amp;lt;/o:LastAuthor&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Created&amp;gt;2007-02-26T09:01:34Z&amp;lt;/o:Created&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:LastSaved&amp;gt;2007-02-26T09:09:05Z&amp;lt;/o:LastSaved&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Company&amp;gt;Capita Insurance Services&amp;lt;/o:Company&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:Version&amp;gt;9.6926&amp;lt;/o:Version&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/o:DocumentProperties&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;o:OfficeDocumentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:DownloadComponents/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;o:LocationOfComponents HRef="file:msowc.cab"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/o:OfficeDocumentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xml&amp;gt;&amp;lt;![endif]--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--table&lt;/P&gt;&lt;P&gt;	{mso-displayed-decimal-separator:"\.";&lt;/P&gt;&lt;P&gt;	mso-displayed-thousand-separator:"\,";}&lt;/P&gt;&lt;P&gt;@page&lt;/P&gt;&lt;P&gt;	&lt;SPAN __jive_macro_name="margin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;tr&lt;/P&gt;&lt;P&gt;	{mso-height-source:auto;}&lt;/P&gt;&lt;P&gt;col&lt;/P&gt;&lt;P&gt;	{mso-width-source:auto;}&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;	{mso-data-placement:same-cell;}&lt;/P&gt;&lt;P&gt;.style0&lt;/P&gt;&lt;P&gt;	{mso-number-format:General;&lt;/P&gt;&lt;P&gt;	text-align:general;&lt;/P&gt;&lt;P&gt;	vertical-align:bottom;&lt;/P&gt;&lt;P&gt;	white-space:nowrap;&lt;/P&gt;&lt;P&gt;	mso-rotate:0;&lt;/P&gt;&lt;P&gt;	mso-background-source:auto;&lt;/P&gt;&lt;P&gt;	mso-pattern:auto;&lt;/P&gt;&lt;P&gt;	color:windowtext;&lt;/P&gt;&lt;P&gt;	font-size:10.0pt;&lt;/P&gt;&lt;P&gt;	font-weight:400;&lt;/P&gt;&lt;P&gt;	font-style:normal;&lt;/P&gt;&lt;P&gt;	text-decoration:none;&lt;/P&gt;&lt;P&gt;	font-family:Arial;&lt;/P&gt;&lt;P&gt;	mso-generic-font-family:auto;&lt;/P&gt;&lt;P&gt;	mso-font-charset:0;&lt;/P&gt;&lt;P&gt;	border:none;&lt;/P&gt;&lt;P&gt;	mso-protection:locked visible;&lt;/P&gt;&lt;P&gt;	mso-style-name:Normal;&lt;/P&gt;&lt;P&gt;	mso-style-id:0;}&lt;/P&gt;&lt;P&gt;td&lt;/P&gt;&lt;P&gt;	{mso-style-parent:style0;&lt;/P&gt;&lt;P&gt;	padding-top:1px;&lt;/P&gt;&lt;P&gt;	padding-right:1px;&lt;/P&gt;&lt;P&gt;	padding-left:1px;&lt;/P&gt;&lt;P&gt;	mso-ignore:padding;&lt;/P&gt;&lt;P&gt;	color:windowtext;&lt;/P&gt;&lt;P&gt;	font-size:10.0pt;&lt;/P&gt;&lt;P&gt;	font-weight:400;&lt;/P&gt;&lt;P&gt;	font-style:normal;&lt;/P&gt;&lt;P&gt;	text-decoration:none;&lt;/P&gt;&lt;P&gt;	font-family:Arial;&lt;/P&gt;&lt;P&gt;	mso-generic-font-family:auto;&lt;/P&gt;&lt;P&gt;	mso-font-charset:0;&lt;/P&gt;&lt;P&gt;	mso-number-format:General;&lt;/P&gt;&lt;P&gt;	text-align:general;&lt;/P&gt;&lt;P&gt;	vertical-align:bottom;&lt;/P&gt;&lt;P&gt;	border:none;&lt;/P&gt;&lt;P&gt;	mso-background-source:auto;&lt;/P&gt;&lt;P&gt;	mso-pattern:auto;&lt;/P&gt;&lt;P&gt;	mso-protection:locked visible;&lt;/P&gt;&lt;P&gt;	white-space:nowrap;&lt;/P&gt;&lt;P&gt;	mso-rotate:0;}&lt;/P&gt;&lt;P&gt;.xl24&lt;/P&gt;&lt;P&gt;	{mso-style-parent:style0;&lt;/P&gt;&lt;P&gt;	background:#FFFF99;&lt;/P&gt;&lt;P&gt;	mso-pattern:auto none;}&lt;/P&gt;&lt;P&gt;.xl25&lt;/P&gt;&lt;P&gt;	{mso-style-parent:style0;&lt;/P&gt;&lt;P&gt;	font-weight:700;&lt;/P&gt;&lt;P&gt;	font-family:Arial, sans-serif;&lt;/P&gt;&lt;P&gt;	mso-font-charset:0;}&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if gte mso 9]&amp;gt;&amp;lt;xml&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;x:ExcelWorkbook&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:ExcelWorksheets&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:Name&amp;gt;Sheet1&amp;lt;/x:Name&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:Print&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:ValidPrinterInfo/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:PaperSizeIndex&amp;gt;9&amp;lt;/x:PaperSizeIndex&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:HorizontalResolution&amp;gt;600&amp;lt;/x:HorizontalResolution&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;x:VerticalResolution&amp;gt;600&amp;lt;/x:VerticalResolution&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;/x:Print&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:Selected/&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectContents&amp;gt;False&amp;lt;/x:ProtectContents&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectObjects&amp;gt;False&amp;lt;/x:ProtectObjects&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectScenarios&amp;gt;False&amp;lt;/x:ProtectScenarios&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:Name&amp;gt;Sheet2&amp;lt;/x:Name&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectContents&amp;gt;False&amp;lt;/x:ProtectContents&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectObjects&amp;gt;False&amp;lt;/x:ProtectObjects&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectScenarios&amp;gt;False&amp;lt;/x:ProtectScenarios&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:Name&amp;gt;Sheet3&amp;lt;/x:Name&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectContents&amp;gt;False&amp;lt;/x:ProtectContents&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectObjects&amp;gt;False&amp;lt;/x:ProtectObjects&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;x:ProtectScenarios&amp;gt;False&amp;lt;/x:ProtectScenarios&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/x:WorksheetOptions&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/x:ExcelWorksheet&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/x:ExcelWorksheets&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowHeight&amp;gt;7680&amp;lt;/x:WindowHeight&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowWidth&amp;gt;14700&amp;lt;/x:WindowWidth&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowTopX&amp;gt;600&amp;lt;/x:WindowTopX&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:WindowTopY&amp;gt;510&amp;lt;/x:WindowTopY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:ProtectStructure&amp;gt;False&amp;lt;/x:ProtectStructure&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;x:ProtectWindows&amp;gt;False&amp;lt;/x:ProtectWindows&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/x:ExcelWorkbook&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xml&amp;gt;&amp;lt;![endif]--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body link=blue vlink=purple&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table x:str border=0 cellpadding=0 cellspacing=0 width=128 style='border-collapse:&lt;/P&gt;&lt;P&gt; collapse;table-layout:fixed;width:96pt'&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;col width=64 span=2 style='width:48pt'&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;tr height=17 style='height:12.75pt'&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td height=17 class=xl24 width=64 style='height:12.75pt;width:48pt'&amp;gt;Heading1&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td class=xl24 width=64 style='width:48pt'&amp;gt;Heading2&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;tr height=17 style='height:12.75pt'&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td height=17 class=xl25 align=right style='height:12.75pt' x:num&amp;gt;1&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td align=right x:num&amp;gt;2&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;![if supportMisalignedColumns]&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;tr height=0 style='display:none'&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td width=64 style='width:48pt'&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;td width=64 style='width:48pt'&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;![endif]&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I cannot see where the data for the 4 cells and their respective formats are held. You mention that it is difficult to set your first spreadsheet up. Would be possible for you to provide me with code that will demonstrate how to set up a basic spreadsheet. I would be very interested in seeing how you formatted individual cells and set column widths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure you are very busy so any further assistance would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-spreadsheet-e-mail-attachments/m-p/1976666#M400035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:53:12Z</dc:date>
    </item>
  </channel>
</rss>

