Skip to main content

FileCodeCompletionContextStorage Class

A file storage for the local code completion engine.

Namespace: DevExpress.XtraReports.CodeCompletion.Storages

Assembly: DevExpress.XtraReports.v24.1.CodeCompletion.dll

NuGet Package: DevExpress.Reporting.CodeCompletion

Declaration

public class FileCodeCompletionContextStorage :
    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.

using DevExpress.XtraReports.CodeCompletion;
using 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.

Inheritance

Object
FileCodeCompletionContextStorage
See Also