Now there is the possibility to add your custom Designer objects and functions to List & Label on the server and use them in the Web Designer or Report Server Designer on a client afterwards. Web Designer To add your DesignerObjects and DesignerFunctions instances to the Web Designer, you need to add information about the extension assemblies and their classes to the web application's configuration on the server. The WebDesignerOptions class has a new property ExtensionAssemblies to do so. A simple snippet would look like this. The sample assumes a folder called "extensions" in the root folder of the web application that contains the assemblies to load.
string dllPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "extensions"); options.ExtensionAssemblies.Add(new combit.ListLabel24.Web.WebDesigner.WebDesignerExtension() { AssemblyName = "[YourExtensionAssemblyName].dll", ExtensionDirectory = dllPath, Dependencies = new List<string> { "[YourFirstExtensionAssemblyDependencyName].dll", "[YourSecondExtensionAssemblyDependencyName].dll", [...] }, ExtensionClasses = new System.Collections.Generic.List<combit.ListLabel24.Web.WebDesigner.WebDesignerExtensionClass>(){ new combit.ListLabel24.Web.WebDesigner.WebDesignerExtensionClass(){ ClassName = "YourExtensionClassName", // this class should be derived from the DesignerObject class ExtensionType = combit.ListLabel24.Web.WebDesigner.WebDesignerExtensionType.DesignerObject } } });
<setting key="DesignerExtensions"> <DesignerExtensions> <DesignerExtension Name="[YourExtensionAssemblyName].dll" Path="C:\Temp\"> <Dependency Name="[YourFirstExtensionAssemblyDependencyName].dll" /> <Dependency Name="[YourSecondExtensionAssemblyDependencyName].dll" /> [...] <ExtensionClass ClassName="[YourExtensionClassName]" ExtensionType="DesignerObject"></ExtensionClass> </DesignerExtension> </DesignerExtensions> </setting>
Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.