<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="3.8cm" PageWidth="8.3cm" ColumnWidth="3.9cm" ColumnGap="0.20cm" PagePadding="0.00cm">
    <Section Padding="0,2,0,0"  Margin="0,0,0,0" BreakColumnBefore="False" BreakPageBefore="False" >
        <xrd:SectionDataGroup DataGroupName="ItemList" Block.LineStackingStrategy="BlockLineHeight">
            <Table CellSpacing="2" BorderBrush="Black" BorderThickness="0.00cm" Margin="0" Padding="0,0,0,0">
                <Table.Resources>
                    <!-- Style for header/footer rows. -->

                    <!-- Style for data rows. -->
                    <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                        <Setter Property="FontSize" Value="10"/>
                    </Style>

                    <!-- Style for data cells. -->
                    <Style TargetType="{x:Type TableCell}">
                        <Setter Property="Padding" Value="0.05cm"/>
                        <Setter Property="BorderBrush" Value="Black"/>
                        <Setter Property="BorderThickness" Value="0.00cm"/>
                    </Style>
                </Table.Resources>

                <Table.Columns>
                    <TableColumn Width="*" />
                </Table.Columns>

                <TableRowGroup Style="{StaticResource dataRowStyle}">
                    <xrd:TableRowForDataTable TableName="LblDet">
                        <TableCell>
                          
                            <Paragraph TextAlignment="Center" FontSize="8" FontFamily="Arial">
                                <xrbc:TableCellBarcodeC128 PropertyName="Barcode" Width="3.0cm" Height="0.5cm" BarcodeSubType="BC" ShowText="False"/>
                            </Paragraph>
                            <Paragraph TextAlignment="Center" FontSize="8" FontFamily="Arial" FontWeight="Bold">
                                <xrd:InlineTableCellValue PropertyName="BarcodeText" />
                            </Paragraph>
                            <Paragraph TextAlignment="Center" FontSize="8" FontFamily="Arial" FontWeight="Bold">
                                <xrd:InlineTableCellValue PropertyName="ItemName" />
                            </Paragraph>
                            <Paragraph TextAlignment="Center" FontSize="8" FontFamily="Arial" FontWeight="Bold">MRP :
                                <xrd:InlineTableCellValue PropertyName="MRP" /> MSMP :
                                <xrd:InlineTableCellValue PropertyName="InputRate" />
                            </Paragraph>
                            <Paragraph TextAlignment="Center" FontSize="6" FontFamily="Arial" FontWeight="Bold">PKD:
                                <xrd:InlineTableCellValue PropertyName="PckdDate" /> EXP:
                                <xrd:InlineTableCellValue PropertyName="ExpydDate" />
                            </Paragraph>
                            <Paragraph TextAlignment="Center" FontSize="7" FontFamily="Arial" FontWeight="Bold">Cust Care:9879767622
                            </Paragraph>   
                            <Paragraph TextAlignment="Center" FontSize="8" FontFamily="Arial" FontWeight="Bold" Padding="0,0,0,0">Fssai :10718013000273
                            </Paragraph>
                            <Paragraph TextAlignment="Center" Margin="0,2,0,0" FontWeight="Bold" FontFamily="Arial">
                                <Image Grid.Row="1" Source="C:\Horizon Print\Mahavir_Logo.jpg" Width="80" Margin="0,0,0,0"/>
                            </Paragraph>
                        </TableCell>
                    </xrd:TableRowForDataTable>
                </TableRowGroup>
            </Table>
        </xrd:SectionDataGroup>
    </Section>
</FlowDocument>
