Skip to content

LoadText

Updates the document content. The previously created content will be lost.

myWriter.LoadText(text: string, type?: ( "html" | "rtf" | "txt" )):void

Parameters

string text

( "html" | "rtf" | "txt" ) type optional

Remarks

With no type, text is inserted as plain document text. Only html, txt, and rtf are accepted when a type is supplied, case-insensitively; docx, pdf, and xml are load formats for LoadFromBase64, not text load options.

Load plain text content into a writer document

1
2
var writer = new Writer();
writer.LoadText('Emakin');

See Also