<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
  <AutoRefresh>0</AutoRefresh>
  <DataSources><DataSource Name="DataSource"><ConnectionProperties><DataProvider>SQL</DataProvider><ConnectString /></ConnectionProperties></DataSource></DataSources>
  <DataSets>
    <DataSet Name="DataSet_Result">
      <Query><DataSourceName>DataSource</DataSourceName><CommandText /></Query>
      <Fields><Field Name="DocumentNo"><DataField>DocumentNo</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="CustomerName"><DataField>CustomerName</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="CustomerAddress"><DataField>CustomerAddress</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="DocumentDate"><DataField>DocumentDate</DataField><rd:TypeName>System.DateTime</rd:TypeName></Field><Field Name="Description"><DataField>Description</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="Quantity"><DataField>Quantity</DataField><rd:TypeName>System.Decimal</rd:TypeName></Field><Field Name="UnitPrice"><DataField>UnitPrice</DataField><rd:TypeName>System.Decimal</rd:TypeName></Field><Field Name="LineAmount"><DataField>LineAmount</DataField><rd:TypeName>System.Decimal</rd:TypeName></Field><Field Name="AmountFormat"><DataField>AmountFormat</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="ShowUnitPrice"><DataField>ShowUnitPrice</DataField></Field><Field Name="CompanyPicture"><DataField>CompanyPicture</DataField></Field></Fields>
    </DataSet>
  </DataSets>
  <ReportSections>
    <ReportSection>
      <Body><ReportItems>
        <Tablix Name="Lines">
          <TablixBody>
            <TablixColumns>
              <TablixColumn><Width>8cm</Width></TablixColumn><TablixColumn><Width>2.5cm</Width></TablixColumn>
              <TablixColumn><Width>3cm</Width></TablixColumn><TablixColumn><Width>3.5cm</Width></TablixColumn>
            </TablixColumns>
            <TablixRows><TablixRow><Height>0.1cm</Height><TablixCells><TablixCell><CellContents><Textbox Name="HeaderValues"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=First(Fields!CustomerName.Value) + Chr(177) + First(Fields!CustomerAddress.Value) + Chr(177) + First(Fields!DocumentNo.Value) + Chr(177) + Format(First(Fields!DocumentDate.Value), "d")</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><ColSpan>4</ColSpan></CellContents></TablixCell><TablixCell /><TablixCell /><TablixCell /></TablixCells></TablixRow><TablixRow><Height>0.7cm</Height><TablixCells><TablixCell><CellContents><Textbox Name="HeadDescription"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>Description</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell><TablixCell><CellContents><Textbox Name="HeadQuantity"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>Quantity</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell><TablixCell><CellContents><Textbox Name="HeadUnitPrice"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>Unit price</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Visibility><Hidden>=IIF(First(Fields!ShowUnitPrice.Value) = True, False, True)</Hidden></Visibility><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell><TablixCell><CellContents><Textbox Name="HeadAmount"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>Amount</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell></TablixCells></TablixRow><TablixRow><Height>0.6cm</Height><TablixCells><TablixCell><CellContents><Textbox Name="Description"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Fields!Description.Value</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell><TablixCell><CellContents><Textbox Name="Quantity"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Fields!Quantity.Value</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell><TablixCell><CellContents><Textbox Name="UnitPrice"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Fields!UnitPrice.Value</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><Format>=Fields!AmountFormat.Value</Format><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Visibility><Hidden>=IIF(Fields!ShowUnitPrice.Value = True, False, True)</Hidden></Visibility><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell><TablixCell><CellContents><Textbox Name="LineAmount"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Fields!LineAmount.Value</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><Format>=Fields!AmountFormat.Value</Format><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell></TablixCells></TablixRow><TablixRow><Height>0.7cm</Height><TablixCells><TablixCell><CellContents><Textbox Name="TotalLabel"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>Total</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><ColSpan>3</ColSpan></CellContents></TablixCell><TablixCell /><TablixCell /><TablixCell><CellContents><Textbox Name="TotalAmount"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Sum(Fields!LineAmount.Value)</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><Format>=First(Fields!AmountFormat.Value)</Format><FontWeight>Bold</FontWeight><TextAlign>Right</TextAlign></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></CellContents></TablixCell></TablixCells></TablixRow></TablixRows>
          </TablixBody>
          <TablixColumnHierarchy><TablixMembers><TablixMember /><TablixMember /><TablixMember /><TablixMember /></TablixMembers></TablixColumnHierarchy>
          <TablixRowHierarchy>
            <TablixMembers>
              <TablixMember>
                <Group Name="Document">
                  <GroupExpressions><GroupExpression>=Fields!DocumentNo.Value</GroupExpression></GroupExpressions>
                  <PageBreak><BreakLocation>Between</BreakLocation></PageBreak>
                </Group>
                <TablixMembers>
                  <TablixMember><Visibility><Hidden>true</Hidden></Visibility><KeepWithGroup>After</KeepWithGroup></TablixMember>
                  <TablixMember><KeepWithGroup>After</KeepWithGroup><RepeatOnNewPage>true</RepeatOnNewPage></TablixMember>
                  <TablixMember><Group Name="Details" /></TablixMember>
                  <TablixMember><KeepWithGroup>Before</KeepWithGroup></TablixMember>
                </TablixMembers>
              </TablixMember>
            </TablixMembers>
          </TablixRowHierarchy>
          <DataSetName>DataSet_Result</DataSetName>
          <Top>0cm</Top><Left>0cm</Left><Height>2.1cm</Height><Width>17cm</Width>
        </Tablix>
      </ReportItems><Height>2.1cm</Height><Style /></Body>
      <Width>17cm</Width>
      <Page>
        <PageHeader><Height>4cm</Height><PrintOnFirstPage>true</PrintOnFirstPage><PrintOnLastPage>true</PrintOnLastPage>
          <ReportItems><Textbox Name="Title"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>Sales Invoice</Value><Style><FontFamily>Arial</FontFamily><FontSize>16pt</FontSize><FontWeight>Bold</FontWeight></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>0cm</Top><Left>0cm</Left><Height>0.9cm</Height><Width>9cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><Image Name="CompanyLogo"><Source>Database</Source>
       <Value>=Convert.ToBase64String(First(Fields!CompanyPicture.Value, "DataSet_Result"))</Value>
       <MIMEType>image/png</MIMEType><Sizing>FitProportional</Sizing>
       <Top>0cm</Top><Left>11cm</Left><Height>1.8cm</Height><Width>6cm</Width><Style /></Image><Textbox Name="InvoiceNo"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>="Invoice " &amp; Choose(3, Split(CStr(ReportItems!HeaderValues.Value), Chr(177)))</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>1.1cm</Top><Left>0cm</Left><Height>0.6cm</Height><Width>9cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><Textbox Name="InvoiceDate"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>="Date: " &amp; Choose(4, Split(CStr(ReportItems!HeaderValues.Value), Chr(177)))</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>1.7cm</Top><Left>0cm</Left><Height>0.6cm</Height><Width>9cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><Textbox Name="BillTo"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Choose(1, Split(CStr(ReportItems!HeaderValues.Value), Chr(177)))</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><FontWeight>Bold</FontWeight></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>2.5cm</Top><Left>0cm</Left><Height>0.6cm</Height><Width>9cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><Textbox Name="BillToAddress"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>=Choose(2, Split(CStr(ReportItems!HeaderValues.Value), Chr(177)))</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>3.1cm</Top><Left>0cm</Left><Height>0.6cm</Height><Width>9cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></ReportItems><Style /></PageHeader>
        <PageFooter><Height>1cm</Height><PrintOnFirstPage>true</PrintOnFirstPage><PrintOnLastPage>true</PrintOnLastPage>
          <ReportItems><Textbox Name="PrintedBy"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>="Printed by " &amp; User!UserID</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><Color>DimGray</Color></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>0.2cm</Top><Left>0cm</Left><Height>0.6cm</Height><Width>9cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox><Textbox Name="PageNo"><CanGrow>true</CanGrow><KeepTogether>true</KeepTogether><Paragraphs><Paragraph><TextRuns><TextRun><Value>="Page " &amp; Globals!PageNumber &amp; " of " &amp; Globals!TotalPages</Value><Style><FontFamily>Arial</FontFamily><FontSize>9pt</FontSize><TextAlign>Right</TextAlign><Color>DimGray</Color></Style></TextRun></TextRuns><Style></Style></Paragraph></Paragraphs><Top>0.2cm</Top><Left>11cm</Left><Height>0.6cm</Height><Width>6cm</Width><Style><PaddingLeft>2pt</PaddingLeft><PaddingRight>2pt</PaddingRight><PaddingTop>2pt</PaddingTop><PaddingBottom>2pt</PaddingBottom></Style></Textbox></ReportItems><Style /></PageFooter>
        <PageHeight>29.7cm</PageHeight><PageWidth>21cm</PageWidth>
        <LeftMargin>2cm</LeftMargin><RightMargin>2cm</RightMargin><TopMargin>2cm</TopMargin><BottomMargin>2cm</BottomMargin>
        <Style />
      </Page>
    </ReportSection>
  </ReportSections>
  <Language>en-US</Language>
  <rd:ReportUnitType>Cm</rd:ReportUnitType>
</Report>
