コード例 #1
0
        //Print Excel File Name
        public void PrintFileName(string FileFullPath)
        {
            //Get the File Name
            string FileName = Path.GetFileNameWithoutExtension(FileFullPath);

            //Get the File Path
            string FilePath = DesignUtils.TrimFilePath(FileFullPath, Directory.GetCurrentDirectory());

            //Fill File Path to the Form
            ModelProperty property = this.ModelItem.Properties["FilePathPreview"];

            property.SetValue(new InArgument <string>(FilePath));

            //Check if Storage Files exists
            bool bExists = File.Exists(Directory.GetCurrentDirectory() + "/" + "StorageTextToolbox/FileNames/" + FileName + ".txt");

            //If false create directory files
            if (bExists == false)
            {
                //Write Excel File Sheets to Text File in Storage
                DesignUtils.WriteTextFileSingleFile(FileFullPath, MyIDText);
            }

            //Button Refresh Current File
            Button_RefreshCurrentFile();
        }