IWizRtf2Html

[ 
    object, 
    uuid(D0B63F92-3FF9-4B6F-82A3-3B423930899F), 
    dual, 
    nonextensible, 
    helpstring("IWizRtf2Html Interface"), 
    pointer_default(unique) 
] 
interface IWizRtf2Html : IDispatch{ 
    [id(1), helpstring("method Convert")] HRESULT Convert([in] BSTR bstrRtfText, [out,retval] BSTR* pbstrHtml); 
    [id(2), helpstring("method ConvertClipboardRtf2Html")] HRESULT ConvertClipboardRtf2Html([out,retval] BSTR* pbstrHtml); 
    [id(3), helpstring("method ConvertFile")] HRESULT ConvertFile([in] BSTR bstrRtfFileName, [out,retval] BSTR* pbstrHtml); 
};
 
ProgID
WizTools.WizRtf2Html
C/C++头文件
WizTools.h; WizTools_i.c
 

方法 Convert

转换RTF到HTML

参数

  • [in] BSTR bstrRtfText:RTF内容

返回

  • [out,retval] BSTR* pbstrHtml:转换后的HTML内容

方法  ConvertClipboardRtf2Html

转换剪贴板RTF内容到HTML

参数

返回

  • [out,retval] BSTR* pbstrHtml:转换后的HTML内容

方法 ConvertFile

转换RTF文件到HTML

参数

  • [in] BSTR bstrRtfFileName:RTF文件名

返回

  • [out,retval] BSTR* pbstrHtml:转换后的HTML内容