# Save As

Saves the Excel file in a different format or to a different location.

Saves the Excel file given by file path or Binary data as a separate file in the desired location, or keeps it as Binary data. Input File Path takes precedence over Input Data. Supported format types : "XLSX", "XLS", "PDF", "JPEG", "TIFF", "PNG", "WMP", "BMP", "GIF".


---

### **⬅️INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `InputFilePath` | `String` | ✅ Yes    | Source file path |
| `InputData` | `Byte[]` | ✅ Yes    | Source binary data |
| `SheetName` | `String` | ❌ No     | Sheet name  |
| `OutputFilePath` | `String` | ❌ No     | Output file path |
| `OutputFormat` | `String` | ❌ No     | Output format |
| `OverwriteIfExists` | `Boolean` | ❌ No     | Whether to overwrite if the file exists |


---

### **➡️OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsSaveAsSuccessful` | `Boolean` | Whether the operation succeeded |
| `SaveAsMessage` | `String` | Result message |
| `SaveAsResult` | `Byte[]` | Saved Excel file |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |