Object Model Reference : Classes : T : Text : Methods : Text.MakeHTMLCompatible |
Function MakeHTMLCompatible(HTML As Boolean) As Boolean
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.
|
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 |
Copyright 2013 Corel Corporation. All rights reserved.