Skip to main content

CodeCompletionRequestManager Class

Enables you to use the local code completion engine in End-User Report Designers.

Namespace: DevExpress.XtraReports.CodeCompletion

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

NuGet Package: DevExpress.Reporting.CodeCompletion

Declaration

public static class CodeCompletionRequestManager

Remarks

Intelligent code completion requires connection to the Internet and supports only .NET Framework and DevExpress libraries deployed with the application.

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

The local engine requires a storage for report layouts. You can use the predefined storage (the FileCodeCompletionContextStorage or InMemoryCodeCompletionContextStorage class) or provide your custom storage.

The UseLocalEngine method has two overloads:

  • The UseLocalEngine() method without parameters activates an in-memory storage (InMemoryCodeCompletionContextStorage).

    DevExpress.XtraReports.CodeCompletion.CodeCompletionRequestManager.UseLocalEngine();
    
  • The UseLocalEngine(ICodeCompletionContextStorage) method accepts a storage object as parameter.

    The following code demonstrates how to pass the FileCodeCompletionContextStorage instance to store report layouts in the specified folder.

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

    You can also implement the ICodeCompletionContextStorage interface, create its instance and pass it to the method as the parameter.

See the Scripts Overview topic for more information.

Inheritance

Object
CodeCompletionRequestManager
See Also