Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Preview.LoadContainer

Loads a PDF document from data in container.

Component Version macOS Windows Linux Server iOS SDK
Preview 13.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Preview.LoadContainer"; PreviewRef; ContainerValue )   More

Parameters

Parameter Description Example
PreviewRef The reference ID for this preview control. $ref
ContainerValue The container value (variable or field) to read the PDF from. MyTable::MyPDFContainer

Result

Returns OK or error.

Description

Loads a PDF document from data in container.
Depending on what the preview handler can do, we either pass PDF directly in memory or use a temporary file, which later gets deleted when closing.

For MBS Plugin 16.1 on macOS this got optimized to also handle other file types better. You can preview Keynote, Numbers or Pages files now from a container as well as many other types.

Examples

Load preview:

Set Variable [ $r ; Value: MBS( "Preview.LoadContainer"; $$preview; PDF Viewer::PDF Container ) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to load container" ; $r ]
End If

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 12nd June 2023, last changed 23th March 2026


Preview.List - Preview.LoadFile


MarkDown version: PreviewLoadContainer.md