This is a migrated thread and some comments may be shown as answers.

RadDocument -> pdf converter

3 Answers 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gleb
Top achievements
Rank 1
Gleb asked on 09 Sep 2011, 09:02 AM
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>

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 14 Sep 2011, 06:49 PM
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 >>

0
Sergey
Top achievements
Rank 1
Iron
answered on 16 Feb 2012, 03:56 PM
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?
0
Ivailo Karamanolev
Telerik team
answered on 17 Feb 2012, 02:42 PM
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 >>
Tags
General Discussions
Asked by
Gleb
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Sergey
Top achievements
Rank 1
Iron
Ivailo Karamanolev
Telerik team
Share this question
or