BpcSMScriptLibrary 12
MHTML MS CDO Interface - BPC Library
Language: Delphi 7 - 2007
ALL ROUTINES IN THIS LIBRARY REQUIRE MS CDO and ADO 2.5+ to be available on the system
MS CDO can be found in Cdosys.dll this is a standard component of XP + W2000 + W2003
systems. Exchange 2007 does not include CDO / Mapi support by default so the library
- may* have to be downloaded separately from Microsoft.
////////////////////////////////////////////////////////////////////////////////////////// //////// MHTML MS CDO Interface - BPC Library ////////////////////////////////////////////////////////////////////////////////////////// // ALL ROUTINES IN THIS LIBRARY REQUIRE MS CDO and ADO 2.5+ to be available on the system // MS CDO can be found in Cdosys.dll this is a standard component of XP + W2000 + W2003 // systems. Exchange 2007 does not include CDO / Mapi support by default so the library // *may* have to be downloaded separately from Microsoft. interface uses Classes; // Save the AURL to AFileName as an MHTML document function SaveToMHTMLFile(const AUrl,AFileName: string; var ErrorMessage : string ) : boolean; // Save the AURL to a Stream as an MHTML document function SaveToMHTMLStream(const AUrl: string; Var MHTStream : TStream; var ErrorMessage : string ) : boolean; // Save the AURL to a string as an MHTML document (return True on success, or False and '') function SaveToMHTMLString(const AUrl: string; var ErrorMessage : string ) : string; overload; // Save the AURL to a string as an MHTML document (return the string or '') function SaveToMHTMLString(const AUrl: string; Var MHTMLString : String; var ErrorMessage : string ) : boolean; overload;