Sign In  Sign Up Live-Chat

DefaultCellTextInfo does not work!

Last post 02-14-2008, 8:45 AM by Hans.firefox. 2 replies.
Sort Posts: Previous Next
  •  01-02-2008, 7:10 AM 107479

    DefaultCellTextInfo does not work!

    Attachment: Present (inaccessible)
    Hello,
       "DefaultCellTextInfo" does not seem to work when used from XML. See the input XML given below. <DefaultCellTextInfo> tag does not produce the required text color.

    <?xml version="1.0" encoding="utf-8" ?>
    <Pdf xmlns="Aspose.Pdf" CultureInfo="en-US">
        <Section>
            <Table ColumnWidths="120 120 120">
                <Row>
                     <!-- No effect of this setting --> 
                    <DefaultCellTextInfo Color="rgb 102 102 102"/>
                    <Cell PaddingLeft="30">
                        <Text ID="text1">
                            <Segment>item1</Segment>
                        </Text>
                    </Cell>
                    <Cell PaddingLeft="30">
                        <Text ID="text2">
                            <Segment>item2</Segment>
                        </Text>
                    </Cell>
                    <Cell PaddingLeft="30">
                        <Text ID="text3">
                            <Segment>item3</Segment>
                        </Text>
                    </Cell>
                </Row>
            </Table>
        </Section>
    </Pdf>

    And more interestingly, if I change the position of the <DefaultCellTextInfo> tag as shown below, there's a bad side effect - the background color of the cells is rendered in black !!

    <?xml version="1.0" encoding="utf-8" ?>
    <Pdf xmlns="Aspose.Pdf" CultureInfo="en-US">
        <Section>
            <Table ColumnWidths="120 120 120">
                <Row>
                    <Cell PaddingLeft="30">
                        <Text ID="text1">
                            <Segment>item1</Segment>
                        </Text>
                    </Cell>
                    <Cell PaddingLeft="30">
                        <Text ID="text2">
                            <Segment>item2</Segment>
                        </Text>
                    </Cell>
                    <Cell PaddingLeft="30">
                        <Text ID="text3">
                            <Segment>item3</Segment>
                        </Text>
                    </Cell>
                    <!-- Bad side effect of this setting! Background color becomes black ! --> 
                    <DefaultCellTextInfo Color="rgb 102 102 102"/>
                </Row>
            </Table>
        </Section>
    </Pdf>

    For sample PDFs, please refer to the attachment. Version: 3.6.1.10

    Let me know if you can reproduce this error!

    Regards,
    Venkat

     
  •  01-02-2008, 11:09 AM 107502 in reply to 107479

    Re: DefaultCellTextInfo does not work!

    Hi,

    This issue has been logged as PDFNET-4238. We will try our best to resolve this as soon as possilble. As a work around you can set the color of each cell individually.

    Thanks.

     
  •  02-14-2008, 8:45 AM 113387 in reply to 107502

    Re: DefaultCellTextInfo does not work!

    Hi,

    The new hot fix Aspose.Pdf 3.6.2.0 has been published and the fix of PDFNET-4238 is included. Please download it follow this link: http://www.aspose.com/Community/Files/
    Thanks.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML