combit List & Label 29 - .NET Help
combit.Reporting.Repository Namespace / RepositoryImportUtil Class / ImportProjectFileWithDependencies Method

The List & Label instance that the repository is assigned to.

The local path of the project to import.

Optional. If not null, this parameter allows to set the repository ID to use for the imported project. An existing item is replaced.



In This Topic
    ImportProjectFileWithDependencies Method
    In This Topic
    Imports a project file into the repository and returns the ID of the created repository item. Unlike ImportProjectFile, this method will load the project via DOM (see also combit.Reporting.Dom Namespace) and exchange all references to local files (e.g. images) with repository items for those files. Furthermore this method recursively loads all referenced project files (e.g. for drilldown, includes, table of contents, ...) in the same way and also imports their dependencies into the repository. This method call may be expensive, however the imported project should be ready to use from just the repository without needing any local files anymore. When importing multiple files, always use the same instance of the RepositoryImportUtil so already imported files are reused.
    Syntax
    'Declaration
     
    
    Public Function ImportProjectFileWithDependencies( _
       ByVal ll As ListLabel, _
       ByVal projectFilePath As String, _
       Optional ByVal repositoryItemId As String, _
       Optional ByVal folderId As String, _
       Optional ByVal printerConfigFile As String, _
       Optional ByVal sketchImageFile As String, _
       Optional ByVal userImportData As String _
    ) As String

    Parameters

    ll

    The List & Label instance that the repository is assigned to.

    projectFilePath

    The local path of the project to import.

    repositoryItemId

    Optional. If not null, this parameter allows to set the repository ID to use for the imported project. An existing item is replaced.

    folderId
    printerConfigFile
    sketchImageFile
    userImportData
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also