Back to Devexpress

FileCodeCompletionContextStorage Class

xtrareports-devexpress-dot-xtrareports-dot-codecompletion-dot-storages.md

latest3.3 KB
Original Source

FileCodeCompletionContextStorage Class

A file storage for the local code completion engine.

Namespace : DevExpress.XtraReports.CodeCompletion.Storages

Assembly : DevExpress.XtraReports.v25.2.CodeCompletion.dll

NuGet Package : DevExpress.Reporting.CodeCompletion

Declaration

csharp
public class FileCodeCompletionContextStorage :
    ICodeCompletionContextStorage
vb
Public Class FileCodeCompletionContextStorage
    Implements ICodeCompletionContextStorage

Remarks

For End-User Report Designers, you can activate the local code completion engine that works without an Internet connection. Install the DevExpress.Reporting.CodeCompletion NuGet package and call the CodeCompletionRequestManager.UseLocalEngine method at the application startup.

This local engine requires a storage for report layouts.

You can use the predefined FileCodeCompletionContextStorage class to store report layouts in the specified file folder. Call the UseLocalEngine(ICodeCompletionContextStorage) method at the application startup and pass this class instance as a parameter.

csharp
using DevExpress.XtraReports.CodeCompletion;
using DevExpress.XtraReports.CodeCompletion.Storages;

CodeCompletionRequestManager.UseLocalEngine(new FileCodeCompletionContextStorage("D:\\CodeCompletionContext"));
vb
Imports DevExpress.XtraReports.CodeCompletion
Imports DevExpress.XtraReports.CodeCompletion.Storages

CodeCompletionRequestManager.UseLocalEngine(New FileCodeCompletionContextStorage("D:\CodeCompletionContext"))

You can also use an in-memory storage (the InMemoryCodeCompletionContextStorage class) or implement the ICodeCompletionContextStorage interface to provide your custom storage.

See the Scripts Overview topic for more information.

Implements

ICodeCompletionContextStorage

Inheritance

Object FileCodeCompletionContextStorage

See Also

FileCodeCompletionContextStorage Members

DevExpress.XtraReports.CodeCompletion.Storages Namespace