PRODUCT_NAME_ALT

Merge SXC with DOCX for Free in php

Use a free app or Php SDK to merge SXC and DOCX, along with several popular formats from Microsoft® MS Excel.

Php Code for Merging SXC Files into DOCX: A Complete Guide

// Merge SXC to HTML
// Code will be available soon
%!(EXTRA string=SXC, string=HTML)
// Merge HTML to DOCX
$requestDocument = $localFile;
$requestDocumentListDocumentEntries0FileReferenceStream = realpath(__DIR__ . '/../../..') . '/TestData/' . $localFile;
$requestDocumentListDocumentEntries0FileReference = FileReference::fromLocalFileContent($requestDocumentListDocumentEntries0FileReferenceStream);
$requestDocumentListDocumentEntries0 = new DocumentEntry(array(
    "file_reference" => $requestDocumentListDocumentEntries0FileReference,
    "import_format_mode" => "KeepSourceFormatting",));
$requestDocumentListDocumentEntries = [
    $requestDocumentListDocumentEntries0,
];
$requestDocumentList = new DocumentEntryList(array(
    "document_entries" => $requestDocumentListDocumentEntries,));
$appendRequest = new AppendDocumentOnlineRequest(
    $requestDocument, $requestDocumentList, NULL, NULL, NULL, NULL, NULL, NULL);
$wordsApi->appendDocumentOnline($appendRequest);
%!(EXTRA string=HTML, string=DOCX)

How to Merge SXC with DOCX in Cloud Apps

  1. Initialize WordsApi with Client Id, Client Secret, Base URL & API version
  2. Set requestDocument assign the local SXC file name
  3. Set requestDocumentListDocumentEntriesFileReference and assign local DOCX file name
  4. Set requestDocumentListDocumentEntries and set file_reference, import_format_mode parameters
  5. Create DocumentEntryList instance and assing requestDocumentListDocumentEntries to document_entries parameter
  6. Call AppendDocumentOnlineRequest to merge SXC file with DOCX document requestDocument and requestDocumentList
  7. Call WordsApi appendDocumentOnline with parameters

Get Started with Aspose.Total REST APIs

  1. Create an account at Dashboard to get free API quota & authorization details
  2. Get Aspose.Words and Aspose.Cells Cloud SDKs for Php source code from Aspose.Words GitHub and Aspose.Cells GitHub repos to compile/use the SDK yourself or head to the Releases for alternative download options.
  3. Also have a look at Swagger-based API Reference for Aspose.Words and Aspose.Cells to know more about the REST API.

Best Tools to Merge MS Excel Spreadsheet(SXC) and DOCX Files for Data Integration

Aspose.Cells Cloud provides efficient methods to merge multiple documents into a single file while preserving formatting.

Steps for Merging Documents:

  1. Create a MergeDocumentRequest Object to specify the source documents to be merged.
  2. Call the AppendDocument Method of the Aspose.Cells API class instance to merge one document into another.
  3. Use SaveOptions to define the output format (DOCX, PDF, etc.).
  4. Send API Request to combine documents into a single merged output.

How to Combine MS Excel and SXC with Other Formats Online

Boost your document management efficiency by merging SXC files with other formats using the robust Aspose.Cells API. Seamlessly integrate your merged documents with other Aspose.Total APIs such as Aspose.Words, Aspose.PDF, Aspose.Email, Aspose.Slides, Aspose.Diagram, Aspose.Tasks, Aspose.3D, Aspose.HTML. This all-in-one solution allows you to combine files into a single document across various formats.

For a full list of supported formats and merging features, visit the Aspose.Total Cloud page.

FAQ

  • What is SXC Format?
    The file format SXC(Sun XML Calc) belongs to an office suite called OpenOffice.org. This format generally deals with the spreadsheet needs of users as it is an XML based spreadsheet file format. SXC format supports formulas, functions, macros and charts along with DataPilot, which is an incredible feature because it automatically individualizes and provides summaries of raw imported data. The files created with this software are saved with extension .sxc.
  • What is DOCX Format?
    DOCX is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. Docx files can be opened with Word 2007 and lateral versions but not with the earlier versions of MS Word which support DOC file extensions.
  • How can I get started with Aspose.Total REST APIs?
    Quickstart not only guides through the initialization of Aspose.Total Cloud API, it also helps in installing the required libraries.
  • Where can I see the release notes for Aspose.Total Cloud API?
    Complete release notes can be reviewed at Aspose.Total Cloud Documentation.
  • Is it safe to merge SXC with DOCX in the Cloud?
    Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
  • What file formats are supported by Aspose.Total Cloud API?
    Aspose.Total Cloud can merge file formats from any product family to any other product family to PDF, DOCX, XPS, image(TIFF, JPEG, PNG BMP), MD and more. Checkout the complete list of supported file formats.
  • I can not find the SDK for my favorite language. What should I do?
    Aspose.Total Cloud is also available as a Docker Container. Try using it with cURL in case your required SDK is not available yet.