<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="29.6cm" PageWidth="21cm" ColumnWidth="25cm">
  <xrd:ReportProperties>
  </xrd:ReportProperties>
  <xrd:SectionReportHeader PageHeaderHeight="26" Padding="40,30,0,0" FontSize="12">
    <Table Name="BillHeader" Margin="0,0,0,0" CellSpacing="0" Padding="0,0,0,0">
      <Table.Columns>
        <TableColumn Width="700" />
      </Table.Columns>
        <TableRowGroup>
          <TableRow>
            <TableCell Padding="0,10,20,0">
              <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">Page
                <xrd:InlineContextValue PropertyName="PageNumber" /> of
                <xrd:InlineContextValue PropertyName="PageCount" />
              </Paragraph>
            </TableCell>
            <TableCell>
              <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Courier"> 
              <!--<xrd:InlineDocumentValue PropertyName="ReportTitle"/>-->
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>
    </Table>
    <Table Name="CompanyDetails" Margin="0,0,0,0" CellSpacing="0" Padding="0,0,0,0" BorderBrush="Black" BorderThickness="1,1,1,0">
          <Table.Columns>
            <TableColumn Width="700.5" />
          </Table.Columns>
        <TableRowGroup>
          <TableRow>
            <TableCell>
              <Paragraph TextAlignment="Center" FontSize="16" FontFamily="Courier" FontWeight="Bold" >
                <xrd:InlineDocumentValue PropertyName="FirmName" />
              </Paragraph>
            </TableCell>
          </TableRow>
          <TableRow>
            <TableCell>
              <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Courier">
                <xrd:InlineDocumentValue PropertyName="DoorNo" />
                <xrd:InlineDocumentValue PropertyName="Street" />
              </Paragraph>
            </TableCell>
           </TableRow>
           <TableRow>
            <TableCell>
              <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Courier">
                <xrd:InlineDocumentValue PropertyName="District" />-
                <xrd:InlineDocumentValue PropertyName="PinCode" />,
                <xrd:InlineDocumentValue PropertyName="State" />
              </Paragraph>
            </TableCell>
           </TableRow>
           <TableRow>
              <TableCell>
                <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Courier">Ph:
                <xrd:InlineDocumentValue PropertyName="Phone1" /> E-Mail:
                  <xrd:InlineDocumentValue PropertyName="Email" /> 
                </Paragraph>
              </TableCell>
           </TableRow> 
           <TableRow>
            <TableCell>
              <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Courier"> GSTIN :
                <xrd:InlineDocumentValue PropertyName="GSTIN" />
              </Paragraph>
            </TableCell>
           </TableRow>             
      <TableRow>
        <TableCell>
          <Paragraph TextAlignment="Center" FontSize="14" FontFamily="Courier" FontWeight="Bold">MANUFACTURING VOUCHER
          </Paragraph>
        </TableCell>
      </TableRow>
     </TableRowGroup>
    </Table>
    
    <Table Name="InvoiceDetails" Margin="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
     <Table.Columns>
      <TableColumn Width="700.5" />
     </Table.Columns>
      <TableRowGroup>
       <TableRow>
          <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,5,0,0">
            <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier"> MFG No.:
              <xrd:InlineDocumentValue PropertyName="MSeries" />
              <xrd:InlineDocumentValue PropertyName="MVno" />
            </Paragraph>
          </TableCell>
       </TableRow>
      </TableRowGroup>
      <TableRowGroup>
       <TableRow>
        <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
          <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier">MFG Date :
            <xrd:InlineDocumentValue PropertyName="MBillDate" />
          </Paragraph>
        </TableCell>
       </TableRow>  
      </TableRowGroup>
    </Table>

    <Table Name ="CustomerDetailsHeader" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,1,0">
      <Table.Columns>
        <TableColumn Width="349.5" />
        <TableColumn Width="351" />
      </Table.Columns>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Background="LightGray">
              <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Courier" FontWeight="Bold"> SOURCE
              </Paragraph>
            </TableCell>
            <TableCell BorderThickness="0,0,0,0" Background="LightGray">
              <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Courier" FontWeight="Bold"> DESTINATION
              </Paragraph>
            </TableCell>
          </TableRow> 
        </TableRowGroup>
    </Table>
    
    <Table Name="CustomerDetails" Margin="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
      <Table.Columns>
        <TableColumn Width="50" />
        <TableColumn Width="10" />
        <TableColumn Width="289.5" />
        <TableColumn Width="50" />
        <TableColumn Width="10" />
        <TableColumn Width="291" />
      </Table.Columns>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold"> Name
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold"> :
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold">
                  <xrd:InlineDocumentValue PropertyName="MCustname" />
              </Paragraph>
            </TableCell>
            <TableCell Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0">Name 
              </Paragraph>
            </TableCell>    
            <TableCell Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0"> :
              </Paragraph>
            </TableCell>                 
            <TableCell Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0">
                <TextBlock TextTrimming="CharacterEllipsis" TextAlignment="Left"> 
                  <xrd:InlineDocumentValue PropertyName="DelLedgerName" />
                </TextBlock>
              </Paragraph>
            </TableCell>                 
          </TableRow>
        </TableRowGroup>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold">Address 
              </Paragraph>
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold"> :
              </Paragraph>
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold">
                <xrd:InlineDocumentValue PropertyName="MAdd1" />
              </Paragraph>
            </TableCell>
            <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold">Address 
              </Paragraph>
            </TableCell>
             <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold">:
              </Paragraph>
            </TableCell>
             <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold">
                <xrd:InlineDocumentValue PropertyName="DelAdd1" />
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
                <xrd:InlineDocumentValue PropertyName="MAdd2" />
              </Paragraph>
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
                <xrd:InlineDocumentValue PropertyName="DelAdd2" />
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>
        <TableRowGroup>
          <TableRow>
           <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
                <xrd:InlineDocumentValue PropertyName="MAdd3" />
              </Paragraph>
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
              </Paragraph>
            </TableCell>
            <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" Margin="0,0,0,0">
                <xrd:InlineDocumentValue PropertyName="DelAdd3" />
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0"> Mobile 
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0"> :
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0"> 
                <xrd:InlineDocumentValue PropertyName="MMobile" />
              </Paragraph>
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0"> Mobile 
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0"> :
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="2,3,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier" FontWeight="Semibold" Margin="0,0,0,0">
                <xrd:InlineDocumentValue PropertyName="MMobile" />
              </Paragraph>
            </TableCell>         
          </TableRow>
        </TableRowGroup>
       <!-- <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier"> State :
                <xrd:InlineDocumentValue PropertyName="MStateName" />
              </Paragraph>
            </TableCell>
            <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier">State :
                <xrd:InlineDocumentValue PropertyName="MStateName" />
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier"> GSTIN :
                <xrd:InlineDocumentValue PropertyName="MGSTIN" />
              </Paragraph>
            </TableCell>
            <TableCell Padding="2,0,0,0">
              <Paragraph TextAlignment="Left" FontSize="11" FontFamily="Courier">GSTIN :
                <xrd:InlineDocumentValue PropertyName="MGSTIN" />
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>-->
    </Table>
    <Table Name="goods" Margin="0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,1,0" Background="LightGray">
    <Table.Columns>
      <TableColumn Width="349.5" />
      <TableColumn Width="351" />
       </Table.Columns>
        <TableRowGroup>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="0,0,0,0">
              <Paragraph TextAlignment="Center" FontSize="13" FontFamily="Courier" FontWeight="Bold"> Finished Goods
              </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0" Padding="0,0,0,0">
              <Paragraph TextAlignment="Center" FontSize="13" FontFamily="Courier" FontWeight="Bold">Raw Materials
              </Paragraph>
            </TableCell>
          </TableRow>
        </TableRowGroup>
    </Table>
    <Table Name="ItemHeader" Margin="0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
      <Table.Resources>
        <Style x:Key="headerFooterRowStyle" TargetType="{x:Type TableRowGroup}">
          <Setter Property="FontWeight" Value="DemiBold"/>
          <!--<Setter Property="Background" Value="LightGray"/>-->
          <Setter Property="FontSize" Value="11"/>
          <Setter Property="FontFamily" Value="Courier"/>
        </Style>
        <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
          <Setter Property="FontFamily" Value="Courier"/>
          <Setter Property="FontSize" Value="10"/>
        </Style>
        <Style TargetType="{x:Type TableCell}">
          <Setter Property="Padding" Value="0.1cm"/>
          <Setter Property="BorderBrush" Value="Black"/>
          <Setter Property="BorderThickness" Value="0,0,0,0"/>
        </Style>
      </Table.Resources>
      <Table.Columns>
      <TableColumn Width="30.0" />
      <TableColumn Width="217.5" />
      <TableColumn Width="50.0" />
      <TableColumn Width="52.0" />
      
      <TableColumn Width="248.0" />
      <TableColumn Width="55.0" />
      <TableColumn Width="48.0" />
      </Table.Columns>
        <TableRowGroup Style="{StaticResource headerFooterRowStyle}">
          <TableRow Background="LightGray">
            <TableCell BorderThickness="0,0,0,1">
              <Paragraph TextAlignment="Left">
                <Bold>SN</Bold>
              </Paragraph>
            </TableCell>             
            <TableCell BorderThickness="1,0,0,1">
              <Paragraph TextAlignment="Left">
                <Bold>Product Name</Bold>
              </Paragraph>
            </TableCell>
            <TableCell BorderThickness="1,0,0,1">
              <Paragraph TextAlignment="Center">
                <Bold>Unit</Bold>
              </Paragraph>
            </TableCell>
            <TableCell BorderThickness="1,0,1,1">
              <Paragraph TextAlignment="Center">
                <Bold>Qty</Bold>
              </Paragraph>
            </TableCell>
            
            <TableCell BorderThickness="0,0,0,1">
              <Paragraph TextAlignment="Center">
                <Bold>Product Name</Bold>
              </Paragraph>
            </TableCell>
            <TableCell BorderThickness="1,0,0,1">
              <Paragraph TextAlignment="Center">
                <Bold>Unit</Bold>
              </Paragraph>
            </TableCell>
            <TableCell BorderThickness="1,0,0,1">
              <Paragraph TextAlignment="Center">
                <Bold>Qty</Bold>
              </Paragraph>
            </TableCell>
          </TableRow>
          <TableRow>
            <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                 <Paragraph TextAlignment="Left" Margin="0,0,0,650">        			             
                 </Paragraph>
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
            </TableCell>
             <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
            </TableCell>
            <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
            </TableCell>
          </TableRow>
        </TableRowGroup>
    </Table>
  </xrd:SectionReportHeader>
  
    <xrd:SectionReportFooter PageFooterHeight="10" Padding="40,0,0,20" FontSize="12" FontFamily="Courier">
    <Table Name="PageFooter" CellSpacing="0" BorderBrush="Black" BorderThickness="0,1,0,0">
      <Table.Columns>
        <TableColumn Width="700.5" />
        
      </Table.Columns>
        <TableRowGroup>
          <TableRow>
            <TableCell>
              <Paragraph  FontSize="10">Horizon ERP www.horizontechsolutions.co.in
              <!--<Image Tag="dpd.jpg" Height="0.5cm" />-->
              </Paragraph>
            </TableCell>
            <!-- <TableCell>
              <Paragraph TextAlignment="Right">
              Page
                <xrd:InlineContextValue PropertyName="PageNumber" FontWeight="Bold" /> of
                <xrd:InlineContextValue PropertyName="PageCount" FontWeight="Bold" />
              </Paragraph>
            </TableCell>-->
          </TableRow>
        </TableRowGroup>
    </Table>
    </xrd:SectionReportFooter>
  <!--</xrd:DocumentFooter>-->

  <Section Padding="0,0,0,0" FontSize="12" BreakPageBefore="True">     
  <Table Name="Details" Margin="0,0,0,0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="0.00cm">
      <Table.Columns>
        <TableColumn Width="*" />
        <TableColumn Width="*" />
      </Table.Columns>  
        <TableRowGroup>
          <TableRow>
            <TableCell >
                <Table Name="ItemDetails" Margin="0" Padding="22,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,0,0,0">
                  <Table.Resources>
                    <Style x:Key="headerFooterRowStyle" TargetType="{x:Type TableRowGroup}">
                      <Setter Property="FontWeight" Value="DemiBold"/>
                      <Setter Property="Background" Value="LightGray"/>
                      <Setter Property="FontSize" Value="12"/>
                      <Setter Property="FontFamily" Value="Courier"/>
                    </Style>
                    <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                      <Setter Property="FontFamily" Value="Courier"/>
                      <Setter Property="FontSize" Value="12"/>
                    </Style>
                    <Style TargetType="{x:Type TableCell}">
                      <Setter Property="Padding" Value="0.1cm"/>
                   <Setter Property="BorderBrush" Value="Gray"/>
                      <Setter Property="BorderThickness" Value="0,0,0,0"/>
                    </Style>
                  </Table.Resources>
                  <Table.Columns>
                  <TableColumn Width="30.0" />
                  <TableColumn Width="217.5" />
                  <TableColumn Width="50.0" />
                  <TableColumn Width="52.0" />
                  </Table.Columns>
                    <TableRowGroup Style="{StaticResource dataRowStyle}">
                      <xrd:TableRowForDataTable TableName="BillItemDet">
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph TextAlignment="Left">
                            <xrd:InlineTableCellValue PropertyName="Slno" />
                          </Paragraph>
                        </TableCell>
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph TextAlignment="Left" FontWeight="Bold">
                            <xrd:InlineTableCellValue PropertyName="ItemName"  />
                          </Paragraph>
                           <Paragraph TextAlignment="Left">BatchNo:
                           <xrd:InlineTableCellValue PropertyName="BatchName"  />
                           </Paragraph>
                          <Paragraph TextAlignment="Left">EXP Date:
                          <xrd:InlineTableCellValue PropertyName="ExpiryDate"  />
                          </Paragraph>
                          <Paragraph TextAlignment="Left">MFG Date:
                          <xrd:InlineTableCellValue PropertyName="ManufacturingDate"  />
                          </Paragraph>
                        </TableCell>        
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph  TextAlignment="Left">
                            <xrd:InlineTableCellValue PropertyName="Unit" />
                          </Paragraph>
                        </TableCell>
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph TextAlignment="Center">
                            <xrd:InlineTableCellValue PropertyName="Qty"   AggregateGroup="Qty"/>
                          </Paragraph>
                        </TableCell>
                      </xrd:TableRowForDataTable>
                    </TableRowGroup>
                </Table>   
            </TableCell>
            <TableCell >
                <Table Name="RawMetItemDetails" Margin="0,0,0,0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Gray" BorderThickness="0,0,0,0">
                    <Table.Resources>
                      <Style x:Key="headerFooterRowStyle" TargetType="{x:Type TableRowGroup}">
                        <Setter Property="FontWeight" Value="DemiBold"/>
                        <Setter Property="Background" Value="LightGray"/>
                        <Setter Property="FontSize" Value="12"/>
                        <Setter Property="FontFamily" Value="Courier"/>
                      </Style>
                      <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                        <Setter Property="FontFamily" Value="Courier"/>
                        <Setter Property="FontSize" Value="12"/>
                      </Style>
                      <Style TargetType="{x:Type TableCell}">
                        <Setter Property="Padding" Value="0.1cm"/>
                        <Setter Property="BorderBrush" Value="Gray"/>
                        <Setter Property="BorderThickness" Value="0,0,0,0"/>
                      </Style>
                    </Table.Resources>
                    <Table.Columns>
                   
                 <TableColumn Width="248.5" />
                 <TableColumn Width="55.0" />
                 <TableColumn Width="48.0" />
                    </Table.Columns>
                    <TableRowGroup Style="{StaticResource dataRowStyle}">
                      <xrd:TableRowForDataTable TableName="BillRawMaterialItemDet">
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph TextAlignment="Left">
                            <xrd:InlineTableCellValue PropertyName="ItemName"  />
                          </Paragraph>
                        </TableCell>   
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph  TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="UnitName" />
                          </Paragraph>
                        </TableCell>
                        <TableCell BorderThickness="0,0,0,0">
                          <Paragraph TextAlignment="Center">
                            <xrd:InlineTableCellValue PropertyName="Qty"   AggregateGroup="Qty"/>
                          </Paragraph>
                        </TableCell>
                      </xrd:TableRowForDataTable>
                    </TableRowGroup>
                </Table>   
            </TableCell>
          </TableRow>
        </TableRowGroup>
  </Table>
  </Section>
</FlowDocument>

