Esempio n. 1
0
        string GetTemplateUrl(DataFeedTemplate template, string fileName)
        {
            string path = Path.Combine(
                AppDomain.CurrentDomain.SetupInformation.ApplicationBase
                , AppSettingHelper.Get("DataFeedFilesTemplatePath")
                );

            template.LoadWorkbook(path);
            template.InitWorkbook();

            byte[] buf = template.GetBytes();

            return(FileUploadManager.UploadFileAndGetUrl(fileName, buf));
        }