This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(AddRemoveCalendarExceptions.class); | |
Project project = new Project(dataDir + "input.mpp"); | |
// Remove an exception | |
Calendar cal = project.getCalendars().toList().get(0); | |
if (cal.getExceptions().getCount() > 1) { | |
CalendarException exc = cal.getExceptions().toList().get(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All Aspose.Words for Java GISTS will be here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localName = "html_example.html"; | |
$remoteName = "html_example.docx"; | |
$subfolder = "DocumentActions/ConvertDocument"; | |
$fullName = $remoteName; | |
$saveOptions = new SaveOptionsData(array("save_format" => "pdf", "file_name" => $remoteName)); | |
$file = realpath(__DIR__ . '/../../../..') . '/TestData/Common/' . $localName; | |
$request = new Requests\PostDocumentSaveAsRequest($remoteName, $saveOptions, $folder=""); | |
$result = $this->words->postDocumentSaveAs($request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { WordsApi, PostDocumentSaveAsRequest, SaveOptionsData } = require("asposewordscloud"); | |
wordsApi = new WordsApi(AppSid, AppKey); | |
var request = new PostDocumentSaveAsRequest({ | |
name: "html_example.html", | |
saveOptionsData: new SaveOptionsData( | |
{ | |
saveFormat: "docx", | |
fileName: "html_example.docx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String fileName = "test_doc.docx"; | |
String remoteName = "TestAcceptAllRevisions.docx"; | |
WordsApi wordsAPI=WordsAPIInitialize.getWordsAPI(); | |
wordsAPI.putCreate( | |
Paths.get(WordsAPIInitialize.RemoteTestFolder, this.getClass().getSimpleName(), remoteName).toString().replace("\\", "/"), | |
new File(Paths.get(WordsAPIInitialize.LocalCommonFolder, fileName).toString()), null, null); | |
AcceptAllRevisionsRequest request = new AcceptAllRevisionsRequest(remoteName, | |
Paths.get(WordsAPIInitialize.RemoteTestFolder, this.getClass().getSimpleName()).toString(), null, null, null, null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |