<FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:xrd="clr-namespace:CodeReason.Reports.Document;assembly=CodeReason.Reports" 
              xmlns:xrbc="clr-namespace:CodeReason.Reports.Document.Barcode;assembly=CodeReason.Reports"
              PageHeight="5.0cm" PageWidth="8.0cm" ColumnWidth="4.0cm" ColumnGap="0.00cm" PagePadding="0.00cm">
    <Section Padding="0,0,0,0"  Margin="0" BreakColumnBefore="False" BreakPageBefore="False" >
        <xrd:SectionDataGroup DataGroupName="ItemList" Block.LineStackingStrategy="BlockLineHeight">
            <Table CellSpacing="0" BorderBrush="Black" BorderThickness="0.00cm" Margin="0" Padding="0,0,0,0">
                <Table.Resources>
                    <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                        <Setter Property="FontSize" Value="15"/>
                    </Style>
                    <Style TargetType="{x:Type TableCell}">
                        <Setter Property="Padding" Value="0.00cm"/>
                        <Setter Property="BorderBrush" Value="Black"/>
                        <Setter Property="BorderThickness" Value="0.00cm"/>
                    </Style>                                        
                </Table.Resources>

                <Table.Columns>
                    <TableColumn Width="1cm" />                    
                    <TableColumn Width="2cm" />
                    <TableColumn Width="1cm" />
                </Table.Columns>

                <TableRowGroup Style="{StaticResource dataRowStyle}">
                    <xrd:TableRowForDataTable TableName="LblDet">
                        <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                          <Paragraph>
                            <TextBlock Text="" TextAlignment="Center" FontSize="8" Width="10" Padding="0,0,0,0" Margin="0,0,0,0" FontFamily="Arial">
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                          </Paragraph>
                        </TableCell>
                        <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                          <Paragraph>
                          
                            <TextBlock Text="(Incl.of all Taxes)" FontSize="7" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="QTY:" FontSize="8" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrd:InlineTableCellValue PropertyName="PrintName" />
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="CONTENT:" FontSize="8" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrd:InlineTableCellValue PropertyName="Discription" />
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="MRP:" FontSize="9" TextAlignment="Left" FontWeight="Bold" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrd:InlineTableCellValue PropertyName="MRP" />
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="" FontSize="9" FontWeight="Bold" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrd:InlineTableCellValue PropertyName="ItemName" />
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                          </Paragraph>
                          <Paragraph>
                            <TextBlock Text="" FontSize="9" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrbc:TableCellBarcodeC128 PropertyName="Barcode" Width="2.5cm" Height="0.6cm" BarcodeSubType="BC" ShowText="False"/>
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="" FontSize="9" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">                              
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="MFD :" FontSize="9" TextAlignment="left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrd:InlineTableCellValue PropertyName="PckdDate" />
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                            <TextBlock Text="" FontSize="9" FontWeight="Bold" TextAlignment="Left" Width="85" Margin="0,0,0,0" FontFamily="serif">
                              <xrd:InlineTableCellValue PropertyName="ShortName" />
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                          </Paragraph>
                        </TableCell>
                        <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                            <Paragraph>
                            <TextBlock Text="" FontSize="11" TextAlignment="Center" Width="185" Margin="0,0,0,0" FontFamily="Arial">
                             <Image Grid.Row="1" Source="C:\Horizon Print\LathikaLogo.jpg" Width="80" Margin="0,0,0,0"/>
                              <TextBlock.LayoutTransform>
                                <RotateTransform Angle="90"></RotateTransform>
                              </TextBlock.LayoutTransform>
                            </TextBlock>
                          </Paragraph>
                        </TableCell>                                               
                   </xrd:TableRowForDataTable>
                </TableRowGroup>
            </Table>
        </xrd:SectionDataGroup>
    </Section>
</FlowDocument>
