About Document Processing Libraries

2 posts, 1 answers
  1. Constantinos Petridis
    Constantinos Petridis avatar
    21 posts
    Member since:
    May 2010

    Posted 25 Jun 2014 Link to this post

    Hello Telerik team,

    What is the redistribution process for DPL libraries? It seems that there are based on WPF, meaning that ilmerge is not an option.

    Since the documentation does not say anything about this, how Telerik UI for WinForms based applications are going to handle and destribute these dlls?

    Thank you
  2. Answer
    Peter avatar
    1160 posts

    Posted 30 Jun 2014 Link to this post

    Hello Constantinos,

    Thank you for writing and for the question.

    You should not ILMerge these DLLs and should download it source code and build it, regarding this help article. Please, note that the ValidatePassPhase should be changed in this way:
            public static bool ValidatePassPhrase()
                Application application = Application.Current;
                // This is the case of console application, Windows Forms application, etc.
                if (application == null)
                    if (Application.ResourceAssembly == null)
                        return false;
                    return Application.ResourceAssembly.GetName().Name == ApplicationName;
                    if (application.Resources.Contains(Key))
                        string applicationName = application.Resources[Key] as string;
                        if (applicationName != null && applicationName == ApplicationName)
                            return true;
                return false;

    Then these DLLs are 'locked' to you application and can be distribute them together with the application which references them.

    ILMerge fails to merge the WPF dill because ILMerge does not update WPF resource strings. We will investigate further is it possible to changed the way that WPF read the resource in order to allow ILMerge for these DLLs.

    Another way it to include these DLLs as resources and load them from resource on AssemblyResolve event. Please, refer to this article that describes this approach in details.

    I hope that answered your question

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top