TMS FNC WX Docx — Guides
Creating a new document
Call NewDocument to reset the internal state before building content. Omitting this call appends to any previously generated content.
Downloading the result
Call DownloadAsFile with a filename to trigger a browser file download. To receive the binary content in code, handle OnDownloadAsBase64 and decode the Base64 string.
Exporting as Base64
{ In an OnDownloadAsBase64 event handler: }
procedure TForm1.Docx1DownloadAsBase64(Sender: TObject;
ABase64: string);
begin
{ Decode and save ABase64 to disk }
end;