Live document
Explore the viewer
Use the viewer controls directly to navigate, select, search, print, or download the document.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Load from a server file
Point the Razor helper at a supported document on the server and let the viewer prepare it for browser display.
Document source
DocumentViewerSettings.DocumentPath
How it works
The Razor helper receives an absolute server-side path through DocumentPath. TX Text Control prepares that document for viewing while the physical file remains on the server, and the browser receives only the viewer resources required for display.
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/Loading/FromFile.