ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / LoadDocument Method / LoadDocument(String) Method

The path to the file to load the report form.

Example

In This Topic
    LoadDocument(String) Method
    In This Topic
    Load the report from a specified file path.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadDocument( _
       ByVal filePath As String _
    ) 
    public void LoadDocument( 
       string filePath
    )

    Parameters

    filePath

    The path to the file to load the report form.

    Remarks
    This method allows for loading documents from the file system into the Viewer control. It supports various document formats, including but not limited to PDF, DOCX, and proprietary formats of ActiveReports. Ensure that the file path points to a valid document file and that the application has the necessary permissions to read the file.
    Example
    Here is an example of using the LoadDocument method to load a report from a file:
    viewer.LoadDocument("path/to/report.rdlx");
    See Also