ASPOSE PDF XML Template

Last post 02-04-2012, 11:01 AM by rashid.ali. 3 replies.
Sort Posts: Previous Next
  •  02-02-2012, 7:07 AM 358937

    ASPOSE PDF XML Template .NET

    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%">
          <DefaultCellTextInfo>
            <All FontSize="8"></All>
          </DefaultCellTextInfo>
          <Row>
            <Cell BackgroundColor="Gray">
            </Cell>
            <Cell BackgroundColor="Gray">
            </Cell>
          </Row>
        </Table>

     
  •  02-02-2012, 10:51 AM 359007 in reply to 358937

    Re: ASPOSE PDF XML Template

    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,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  02-03-2012, 1:06 PM 359238 in reply to 359007

    Re: ASPOSE PDF XML Template

    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
     
  •  02-04-2012, 11:01 AM 359298 in reply to 359238

    Re: ASPOSE PDF XML Template

    Attachment: Present (inaccessible)

    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,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
View as RSS news feed in XML