Skip to content

Instantly share code, notes, and snippets.

View aspose-com-kb's full-sized avatar

aspose-com-kb

View GitHub Profile
@aspose-com-kb
aspose-com-kb / Lock Cells in Excel using C#.cs
Created February 18, 2026 18:08
Lock Cells in Excel using C#.
using Aspose.Cells;
namespace CellsProtectionSample
{
internal static class Program
{
private const string LicenseFile = "license.lic";
private const string InputPath = "input.xlsx";
private const string OutputPath = "output_locked.xlsx";
@aspose-com-kb
aspose-com-kb / Add Checkmark in Excel using Python.py
Created February 18, 2026 02:20
Add Checkmark in Excel using Python.
import aspose.cells as ac
def main():
# Apply Aspose.Cells license
license = ac.License()
license.set_license("license.lic")
insert_tick_symbol()
def insert_tick_symbol():
import com.aspose.cells.*;
public class CheckMarkDemo {
public static void main(String[] args) throws Exception {
// Apply Aspose.Cells license
License license = new License();
license.setLicense("license.lic");
using System;
using Aspose.Cells;
namespace CheckMarkDemo
{
class Program
{
static void Main()
{
// Apply Aspose.Cells license
import aspose.cells as ac
def main():
# Apply Aspose.Cells license
license = ac.License()
license.set_license("license.lic")
# Create a workbook and get the first worksheet
workbook = ac.Workbook()
sheet = workbook.worksheets[0]
import com.aspose.cells.*;
public class ThreadedCommentsDemo {
public static void main(String[] args) throws Exception {
// Apply Aspose.Cells license
License license = new License();
license.setLicense("license.lic");
// Create a workbook and get the first worksheet
using System;
using Aspose.Cells;
namespace ThreadedCommentsDemo
{
class Program
{
static void Main()
{
// Apply Aspose.Cells license
import aspose.cells as ac
def combine_excels(excel_files, output_path, license_path="license.lic"):
# License
lic = ac.License()
lic.set_license(license_path)
# 1. Validate list of Excel files
if not excel_files:
print("No files to combine.")
return
import com.aspose.cells.License;
import com.aspose.cells.Workbook;
import java.util.ArrayList;
import java.util.List;
public class MergeExcelFiles {
public static void main(String[] args) throws Exception {
// License
using Aspose.Cells;
using System;
using System.Collections.Generic;
class Program
{
static void Main()
{
// License
var lic = new License();