Description
Namespace:
DuoDimension.Databeam
Assembly: Databeam.Excel (in Databeam.Excel.dll)
Version: 2.0.0.0
CopyC#
CopyVB.NET
Composes the letter use HTML file. With the help of MS Outlook(R) displays the letter, but doesn't send it.
Assembly: Databeam.Excel (in Databeam.Excel.dll)
Version: 2.0.0.0
Syntax
C# | Visual Basic |
Parameters
- FileName
- String
HTML file that will be transform into email.
- AddressTo
- String
The addres of recipient.
- Subject
- String
The theme of the letter.
Return Value
0 - Ok.
1 - Can't open the file. Check FileName parameter.
2 - MS Outlook(R) is not installed.
Examples

DuoDimension.Databeam.Excel convert = new DuoDimension.Databeam.Excel("*******"); if (convert.IsExcelInstalled == true) { convert.OpenXls(@"D:\Sample Excel File.xls"); if (connvert.ReturnCode == 0) { convert.XlsToHtml(1, "", @"d:\testmail.html"); if (convert.ReturnCode == 0) convert.ComposeOutlookLetter(@"d:\testmail.html", "recipient@hotmail.com", "my test"); } }

Dim convert As New DuoDimension.Databeam.Excel("*******") If convert.IsExcelInstalled = True Then convert.OpenXls("D:\Sample Excel File.xls") If convert.ReturnCode = 0 Then convert.XlsToHtml(1, "", "d:\testmail.html") If convert.ReturnCode == 0 Then convert.ComposeOutlookLetter("d:\testmail.html", "recipient@hotmail.com", "my test") End If End If End If
See Also
Excel Class
DuoDimension.Databeam Namespace