The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
19.1 (preview)
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

FileCodeCompletionContextStorage Class

A file storage for the local code completion engine.

Namespace: DevExpress.XtraReports.CodeCompletion.Storages

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


public class FileCodeCompletionContextStorage :
Public Class FileCodeCompletionContextStorage
    Implements ICodeCompletionContextStorage


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.


See Also