This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells | |
string filePath = "Z:\\Downloads\\testFile1.xlsx"; | |
string sheetName = "TestSheet"; | |
// Load the workbook from the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
wb.SetSheetVisibility(sheetName, SheetVisibility.Hidden); | |
wb.Save(filePath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells | |
string filePath = "Z:\\Downloads\\testFile1.xlsx"; | |
string existingSheetName = "TestSheet"; | |
string newSheetName = "RenameSheetName"; | |
// Load the workbook from the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
wb.RenameSheet(existingSheetName, newSheetName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the directory where files are stored | |
string outputDirectory = "Z:\\Downloads\\"; | |
// Specify the path to the Excel file | |
string filePath = "Z:\\Downloads\\testFile1.xlsx"; | |
// Open the workbook located at the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
// Access the first worksheet in the workbook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells | |
string filePath = "Z:\\Downloads\\testFile1.xlsx"; | |
// Load the workbook from the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
// Access the first worksheet in the workbook | |
Worksheet firstSheet = wb.Worksheets[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells; | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
string startColumn = "B"; | |
int numberOfColumns = 3; | |
Worksheet firstSheet = wb.Worksheets[0]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells; | |
// Load the workbook from the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
// Access the first worksheet in the workbook | |
Worksheet firstSheet = wb.Worksheets[0]; | |
// Define the starting row index and the number of rows to insert | |
uint startRowIndex = 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells; | |
// Load the workbook from the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
// Access the first worksheet in the workbook | |
Worksheet firstSheet = wb.Worksheets[0]; | |
// Select a range within the worksheet | |
var range = firstSheet.GetRange("A1", "B10"); | |
Console.WriteLine($"Column count: {range.ColumnCount}"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells; | |
// Initialize a new workbook instance | |
using (Workbook wb = new Workbook()) | |
{ | |
// Access the first worksheet in the workbook | |
Worksheet firstSheet = wb.Worksheets[0]; | |
// Set the height of the first row to 40 points | |
firstSheet.SetRowHeight(1, 40); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var workbook = new Workbook()) | |
{ | |
var firstSheet = workbook.Worksheets[0]; | |
firstSheet.MergeCells("A1", "C1"); // Merge cells from A1 to C1 | |
// Add value to the top-left cell of the merged area | |
var topLeftCell = firstSheet.Cells["A1"]; | |
topLeftCell.PutValue("This is a merged cell"); | |
workbook.Save(filePath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Openize.Cells; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string filePath = "Z:\\Downloads\\spreadsheet_test.xlsx"; // The path to your workbook | |
string outputDirectory = "Z:\\Downloads\\ExtractedImages"; // The directory where you want to save the extracted images | |
// Load the workbook from the specified file path |
NewerOlder