Previous Document Next Document
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 it to paragraph text and then make it Web-compatible.

Parameters
Description
HTML
Determines whether the text is made HTML-compatible

The following code example ensures that all of the 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 2007 Corel Corporation. All rights reserved.