Figure 1: Jim Langseth's IWordStream class converted to a COM interface

[
]
interface IWordStream
{
    HRESULT AddText(BSTR str);
    HRESULT SetUnderLine(long underlinetype); 
    HRESULT 
    SetJustification(long justifytype); 
    HRESULT SetBold(BOOL bold);
    HRESULT SetItalic(BOOL italic);
    HRESULT SaveAs(BSTR str);
    HRESULT PrintOut();
    [propput]
    HRESULT FontSize(float size);
    [propget]
    HRESULT FontSize(float* size);
};