Previous Document Next Document

Object Model Reference : Classes : T : Text : Methods : Text.MakeHTMLCompatible


Text.MakeHTMLCompatible

Function MakeHTMLCompatible(HTML As Boolean) As Boolean

Description

Member of Text

The MakeHTMLCompatible property ensures that a paragraph-text object is HTML-compatible.

 
Artistic text cannot be converted to HTML text and is always treated as a bitmap. However, you can convert artistic text to paragraph text and then make it Web-compatible.

Parameter
Description
HTML
Specifies whether the text is made HTML-compatible

VBA example

The following VBA example ensures that all paragraph-text objects on the page are HTML-compatible.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.FindShapes(Type:=cdrTextShape)
  If s.Text.Type = cdrParagraphText Then
   If Not s.Text.IsHTMLCompatible Then s.Text.MakeHTMLCompatible True
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.