Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Creates RTF text for a given FileMaker formatted styled text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 2.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
(old name: TextToRTF)
Parameter | Description | Example |
---|---|---|
Text | Formatted text to convert. | "Hello World" |
some text you could put into rtf file.
Convert some text to RTF
MBS( "Text.TextToRTF"; "Hello World" )
Example result:
{\rtf1\ansi\ansicpg1252
Hello World
}
Convert some text to HTML
MBS( "Text.TextToHTML"; "Hello World" )
Example result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
</head>
<body>
<p>Hello World</p></body>
</html>
Write RTF file:
Set Variable [$rtf; Value:MBS( "Text.TextToRTF"; "Hello World äöü ß" )]
Set Variable [$r; Value:MBS( "Text.WriteTextFile"; $rtf; "/Users/cs/Desktop/test.rtf"; "Windows")]
Created 18th August 2014, last changed 11st December 2016
Feedback: Report problem or ask question.