Free Support Forum - aspose.com

Transparent table cells

Hello,

Could you please suggest how to create transparent table cells/rows? I could not find the option in CellFormat or RowFormat classes.

Best regards, Evgeniy

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please try using the following code:

builder.getCellFormat().getShading().setBackgroundPatternColor(new Color(0, 0, 0, 0));

Hope this helps.

Best regards.

Hi Alexey,

Thanks, that helped!

Sorry, I have another question here.

Which color should I set to receive some predefined texture as transparent layer?

docBuilder.getCellFormat().getShading().setTexture(TextureIndex.TEXTURE_5_PERCENT);

Best regards, Evgeniy

Hi Evgeniy,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. If I understand you correctly, you would like set “semitransparent” texture. I think this is impossible even in MS Word.

Best regards.