Convert Microsoft Word to other file formats without Cloud Storage using Aspose.Words Cloud

Hello

I Downloaded Aspose Cloud SDK For .NET

And using the following in my project:

using Aspose.Cloud;

using Aspose.Cloud.Common;

string AppSid = “Get it from https:[//cloud.aspose.com ](https://cloud.aspose.com/)”;
string AppKey = “Get it from https:[//cloud.aspose.com ](https://cloud.aspose.com/)”;
string name; string saveOptionsXML; string folder; string storage = “”;
string apiUrl = string.Format(@“words/{0}/SaveAs?storage={1}&folder={2}”, name, storage, folder);
ServiceController.Post(apiUrl, AppSid, AppKey, saveOptionsXML);

But I get

ServiceController dose not exist in current context

What I need ?

Can you please help me.

Regards

Ankiro

Hi Ankiro,

All helper classes are included in SDK as you can see at https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet

Please share your application (including referenced DLLs) to let us investigate why you see this issue. Sorry for the inconvenience.

Best Regards,

@Tom_1341

Please note Aspose.Words Cloud does not support XML but XAML. To convert Word documents to other supported file formats without cloud storage you need to use ConvertDocument API method. Please find below the sample C# code using Aspose.Words Cloud SDK for .NET. Please also check the following documentation article for the supported file formats list. Please feel free to contact us for any further assistance.

Supported File Formats

// Get Customer ID and Key from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyId, MyKey);

var request = new ConvertDocumentRequest(
    document: File.OpenRead("C:/Temp/Test.docx"),
    format: "pdf"
);

var result = wordsApi.ConvertDocument(request);
var fileStream = System.IO.File.Create("C:/Temp/Test.pdf");
result.CopyTo(fileStream);
fileStream.Close();