コード例 #1
0
        public static bool ConfigureFromRegistry()
        {
            string path = LOEnvironment.GetLibreOfficeUnoPathFromRegistry();

            if (!string.IsNullOrEmpty(path))
            {
                LOEnvironment.RegisterInEnvironmentVariables(path);
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
 public static void ConfigureByUnoPath(string libreOfficeUnoPath)
 {
     LOEnvironment.RegisterInEnvironmentVariables(libreOfficeUnoPath);
 }