RadDocument -> pdf converter

4 posts, 0 answers
  1. Gleb
    Gleb avatar
    1 posts
    Member since:
    Jul 2011

    Posted 09 Sep 2011 Link to this post

    Hello.

    I've got an issue while converting RadDocument -> pdf. Nested table's borders and background is not converted properly (see attached png). Is there any workaround? RadDocument -> html converter seems to work properly, but I need pdf at output.

    Here is RadDocument's xaml:

    <t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" version="1.1" DefaultPageLayoutSettings="816,1056" LayoutMode="Paged" PageViewMargin="10,10">
      <t:Section>
        <t:Paragraph />
        <t:Table Background="#00000000" Borders="6,Single,#FF00526C" CellSpacing="0" GridColumnWidthsSerializationInfo="Auto;Auto" LayoutMode="AutoFit" PreferredWidth="Auto">
          <t:TableRow>
            <t:TableCell Background="#FF00B0F0" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
              <t:Paragraph />
              <t:Table Background="#00000000" Borders="3,Single,#FFC0504D" CellSpacing="0" GridColumnWidthsSerializationInfo="Fixed,152;Auto" LayoutMode="AutoFit" PreferredWidth="Auto">
                <t:TableRow>
                  <t:TableCell Background="#FF6A94C8" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
                    <t:Paragraph>
                      <t:Span FontFamily="Verdana" FontSize="16" Text="6" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                    </t:Paragraph>
                  </t:TableCell>
                  <t:TableCell Background="#FF416100" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
                    <t:Paragraph />
                    <t:Table Background="#00000000" Borders="1,Single,#FF000000" CellSpacing="0" GridColumnWidthsSerializationInfo="Auto;Auto" LayoutMode="AutoFit" PreferredWidth="Auto">
                      <t:TableRow Height="22.362133026123">
                        <t:TableCell Background="#FFC1BFB4" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
                          <t:Paragraph>
                            <t:Span FontFamily="Verdana" FontSize="16" Text="1" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                          </t:Paragraph>
                        </t:TableCell>
                        <t:TableCell Background="#FF949287" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
                          <t:Paragraph>
                            <t:Span FontFamily="Verdana" FontSize="16" Text="2" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                          </t:Paragraph>
                        </t:TableCell>
                      </t:TableRow>
                      <t:TableRow>
                        <t:TableCell Background="#FFD8D6CB" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
                          <t:Paragraph>
                            <t:Span FontFamily="Verdana" FontSize="16" Text="3" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                          </t:Paragraph>
                        </t:TableCell>
                        <t:TableCell Background="#FFEEECE1" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
                          <t:Paragraph>
                            <t:Span FontFamily="Verdana" FontSize="16" Text="4" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                          </t:Paragraph>
                        </t:TableCell>
                      </t:TableRow>
                    </t:Table>
                    <t:Paragraph />
                  </t:TableCell>
                </t:TableRow>
              </t:Table>
              <t:Paragraph />
            </t:TableCell>
            <t:TableCell Background="#FF8064A2" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
              <t:Paragraph>
                <t:Span FontFamily="Verdana" FontSize="16" Text="9" UnderlineColor="#FF000000" UnderlineDecoration="None" />
              </t:Paragraph>
            </t:TableCell>
          </t:TableRow>
          <t:TableRow>
            <t:TableCell Background="#FFEE8D3D" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
              <t:Paragraph>
                <t:Span FontFamily="Verdana" FontSize="16" Text="7" UnderlineColor="#FF000000" UnderlineDecoration="None" />
              </t:Paragraph>
            </t:TableCell>
            <t:TableCell Background="#FF9ACCFF" Borders="1,Inherit,#FF000000" ColumnSpan="1" Padding="5,0,5,0" RowSpan="1">
              <t:Paragraph>
                <t:Span FontFamily="Verdana" FontSize="16" Text="8" UnderlineColor="#FF000000" UnderlineDecoration="None" />
              </t:Paragraph>
            </t:TableCell>
          </t:TableRow>
        </t:Table>
        <t:Paragraph />
        <t:Paragraph />
      </t:Section>
    </t:RadDocument>
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 14 Sep 2011 Link to this post

    Hi Gleb,

    Thank you for reporting this bug and providing such detailed information on it. Unfortunately, the issue cannot be worked around.
    However, we will address the problem and try to fix it soon.
    We have also updated your Telerik points in appreciation of your involvement.

    Best wishes,
    Iva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Sergey
    Sergey avatar
    24 posts
    Member since:
    Oct 2011

    Posted 16 Feb 2012 Link to this post

    I am having the same problem.
    Plus some borders of RadDocument inside RadRichTextBox are shown where they should not.
    Is this issue still exist or does it resolved in Q3 2011?
  4. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 17 Feb 2012 Link to this post

    Hello,

    We have just released Q1 2012. We have fixed a bug that caused some inner table elements to be skipped from the export. Please test the documents you have with the new release and contact us if you experience any issues.

    All the best,
    Ivailo Karamanolev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top