protected override void Execute(CodeActivityContext context) { //retrieve the parameters from the Context string oldFilePath = OldFilePath.Get(context); string newFileName = NewFileName.Get(context); string directoryToSave = DirectoryToSave.Get(context); //convert and set result string resultingFilePath = Utils.ConvertWord(oldFilePath, newFileName, directoryToSave, FileTypes.PDFExtension, Word.WdSaveFormat.wdFormatPDF); ResultingFilePath.Set(context, resultingFilePath); }
protected override void Execute(CodeActivityContext context) { //retrieve the parameters from the Context string oldFilePath = OldFilePath.Get(context); string newFileName = NewFileName.Get(context); string directoryToSave = DirectoryToSave.Get(context); //convert and set result string resultingFilePath = Utils.ConvertExcel(oldFilePath, newFileName, directoryToSave, FileTypes.NewExcel, Microsoft.Office.Interop.Excel.XlFileFormat.xlOpenXMLWorkbook); ResultingFilePath.Set(context, resultingFilePath); }