Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells for Node.js via C++ provides the Shape.getThreeDFormat() property along with the ThreeDFormat class to work with the 3‑D format of a shape or chart. The ThreeDFormat class contains various properties that can be set to achieve different results according to application requirements.
The following sample code loads the source Excel file, accesses the first shape in the first worksheet, sets the sub‑properties of the Shape.getThreeDFormat() property, and then saves the workbook to the output Excel file.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sample.xlsx");
// Load Excel file containing a shape
const wb = new AsposeCells.Workbook(filePath);
// Access first worksheet
const ws = wb.getWorksheets().get(0);
// Access first shape
const sh = ws.getShapes().get(0);
// Apply different three‑dimensional settings
const n3df = sh.getThreeDFormat();
n3df.setContourWidth(17);
n3df.setExtrusionHeight(32);
// Save the output Excel file in XLSX format
wb.save(path.join(dataDir, "output_out.xlsx"));
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.