Skip to content

Instantly share code, notes, and snippets.

View mmsajjad-aspose's full-sized avatar

Muhammad Mateen mmsajjad-aspose

View GitHub Profile
// 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);
@mmsajjad-aspose
mmsajjad-aspose / aspose_cells_cloud_java.java
Created February 13, 2017 10:35
Aspose.Cells for Cloud JAVA Example
test
All Aspose.Words for Java GISTS will be here
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);
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"
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);