コード例 #1
0
        public ViewResult StandardGui()
        {
            using (var sourceStream = System.IO.File.OpenRead(Server.MapPath("~/App_Data/" + sourceFileName)))
                using (var targetStream = System.IO.File.OpenRead(Server.MapPath("~/App_Data/" + targetFileName)))
                {
                    ComparisonSaveHandler delegate_instance = StrHandler;
                    GroupdocsComparison.Comparison("#comparison-wrapper")
                    .SourceFileName(sourceFileName, sourceStream)
                    .TargetFileName(targetFileName, targetStream)
                    //.ResultFileName(redlineFileName)
                    .ImmediateCompare()
                    .ComparisonSaving += delegate_instance;
                }

            return(View());
        }
コード例 #2
0
        protected void Application_Start()
        {
            ComparisonWidgetSettings cws = new ComparisonWidgetSettings()
            {
                RootStoragePath = Server.MapPath("~/App_Data/"),
                //LicensePath = @"I:\<path>\license.lic",
                Locale = Groupdocs.Web.UI.SupportedLocales.enUS
            };

            this.Application["cws"] = cws;
            GroupdocsComparison.Init(cws);

            AreaRegistration.RegisterAllAreas();


            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }