TE Edit Control Win32 / Win64 Help
Product page

Html Add-on Interface

Html Add-on must be installed to use these functions. The hts27

.dll should be placed where the ter32.dll file is located.

After a TE control instance is created, please call the TerSetHtmlAddOnKey function to set the product key for SpellTime. The Html Add-on license key can also be set using the HtmlAddOnKey property of the Toc30.ocx ActiveX control.

You can use TE Edit control to create and edit the document, and then use HTML Add-on simply to save (or import) the document. You would set the SAVE_HTML output format to instruct TE to use HTML add-on to save the current contents in the HTML format.

TerSetOutputFormat(SAVE_HTML)

SaveTerFile("myfile.htm"); // or use the Data property of the toc ActiveX control

Similarly, to load an html file

TerSetFlags4(TRUE,TFLAG4_HTML_INPUT)

ReadTerFile("myfile.htm"); // or use the Data property of the toc ActiveX control