This project is read-only.

Aspose.Cells - Add Word Art Watermark to Worksheet

Workbook workbook = new Workbook();

//Get the first default sheet
Worksheet sheet = workbook.getWorksheets().get(0);

//Add Watermark
Shape wordart = sheet.getShapes().addTextEffect(MsoPresetTextEffect.TEXT_EFFECT_1,
"CONFIDENTIAL", "Arial Black", 50, false, true
, 18, 8, 1, 1, 130, 800);

//Get the fill format of the word art
MsoFillFormat wordArtFormat = wordart.getFillFormat();

//Set the color

//Set the transparency

//Make the line invisible
MsoLineFormat lineFormat = wordart.getLineFormat();

//Save the file + "AsposeWatermark_Out.xls");

Download Source Code

For More Examples, visit Aspose Docs

Last edited Nov 11, 2014 at 3:11 PM by shoaibkhan, version 1