We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ASPOSE PDF XML Template

Hi,

We need to set the default font style and size for each cell in a table through XML template.As highlighted below. The code throw exception stating that “DefaultCellTextInfo” is not valid element.
IS there anyway we can achieve without writing code to set the Default Cell TextInfo?

<Table MarginTop=“10” ID=“DataTable” ColumnWidths=“50% 50%”>

Hi Abhijit,

Thanks for your interest in our products.

Kindly use the below mentioned Table Tag for set default font size for all cells.

<Table ID="Table1" ColumnWidths="100 100" FontSize="8">

Please feel free to contact support in case you face any problem.

Thanks & Regards,

Thank you. That worked.

Now I need to set different color, fontsize and fontname for header row and different color, fontsize and fontname for all data rows in a table. How can I achieve that?
can you suggest?
Thanks,
Abhijit

Hi Abhijit,

Thanks for your feedback.

Please find the attached sample XML file in which Color, FontSize and FontName of the header are different Kindly check if it fits your need. Please feel free to contact support in case you need any further assistance.

Thanks & Regards,