<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
  <DataSources>
    <DataSource Name="BAZA_REKLAM">
      <rd:DataSourceID>6a2bec57-03d9-4f28-a49c-65e1805de702</rd:DataSourceID>
      <DataSourceReference>BAZA_REKLAM</DataSourceReference>
    </DataSource>
  </DataSources>
  <InteractiveHeight>29.7cm</InteractiveHeight>
  <ReportParameters>
    <ReportParameter Name="od">
      <DataType>String</DataType>
      <DefaultValue>
        <Values>
          <Value>=Year(Today)</Value>
        </Values>
      </DefaultValue>
      <Prompt>od roku</Prompt>
      <ValidValues>
        <DataSetReference>
          <DataSetName>ListaLat</DataSetName>
          <ValueField>rok</ValueField>
          <LabelField>rok</LabelField>
        </DataSetReference>
      </ValidValues>
    </ReportParameter>
    <ReportParameter Name="do">
      <DataType>String</DataType>
      <DefaultValue>
        <Values>
          <Value>=Year(Today)</Value>
        </Values>
      </DefaultValue>
      <AllowBlank>true</AllowBlank>
      <Prompt>do roku</Prompt>
      <ValidValues>
        <DataSetReference>
          <DataSetName>ListaLat</DataSetName>
          <ValueField>rok</ValueField>
          <LabelField>rok</LabelField>
        </DataSetReference>
      </ValidValues>
    </ReportParameter>
    <ReportParameter Name="tytul">
      <DataType>String</DataType>
      <Nullable>true</Nullable>
      <Prompt>tytuł:</Prompt>
      <ValidValues>
        <DataSetReference>
          <DataSetName>ListaTytulow</DataSetName>
          <ValueField>value</ValueField>
          <LabelField>label</LabelField>
        </DataSetReference>
      </ValidValues>
    </ReportParameter>
    <ReportParameter Name="agencja">
      <DataType>String</DataType>
      <Nullable>true</Nullable>
      <Prompt>agencja</Prompt>
      <ValidValues>
        <DataSetReference>
          <DataSetName>ListaAgencji</DataSetName>
          <ValueField>Id_agencji</ValueField>
          <LabelField>Symbol</LabelField>
        </DataSetReference>
      </ValidValues>
    </ReportParameter>
    <ReportParameter Name="agent">
      <DataType>String</DataType>
      <Nullable>true</Nullable>
      <Prompt>agent</Prompt>
      <ValidValues>
        <DataSetReference>
          <DataSetName>ListaAgentow</DataSetName>
          <ValueField>ID_AGENTA</ValueField>
          <LabelField>Symbol</LabelField>
        </DataSetReference>
      </ValidValues>
    </ReportParameter>
  </ReportParameters>
  <rd:DrawGrid>true</rd:DrawGrid>
  <InteractiveWidth>21cm</InteractiveWidth>
  <rd:GridSpacing>0.25cm</rd:GridSpacing>
  <rd:SnapToGrid>true</rd:SnapToGrid>
  <RightMargin>1cm</RightMargin>
  <LeftMargin>1cm</LeftMargin>
  <BottomMargin>1cm</BottomMargin>
  <rd:ReportID>58bc7198-b2fa-4939-89e9-e74e3118e4d0</rd:ReportID>
  <PageWidth>29.7cm</PageWidth>
  <DataSets>
    <DataSet Name="wgDatyFakturywgPanstw">
      <Fields>
        <Field Name="b">
          <DataField>b</DataField>
          <rd:TypeName>System.Int32</rd:TypeName>
        </Field>
        <Field Name="kraj">
          <DataField>kraj</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="netto">
          <DataField>netto</DataField>
          <rd:TypeName>System.Decimal</rd:TypeName>
        </Field>
        <Field Name="ilosc">
          <DataField>ilosc</DataField>
          <rd:TypeName>System.Int32</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>BAZA_REKLAM</DataSourceName>
        <CommandText>SELECT      b,  kraj , SUM(NETTO) AS netto,COUNT(distinct reklamaId) AS ilosc 
FROM          

  (


SELECT 
ROUND(FD.NETTO, 0) AS NETTO,
fd.reklamaId,
year(faktury.data_wystawienia) AS ROK,
DATEPART(QUARTER, faktury.data_wystawienia) AS KW, 
CONVERT(INTEGER,(1.0+DATEPART(QUARTER, faktury.data_wystawienia))/2) AS ROK_PO,
month(faktury.data_wystawienia) AS MS, 
DATEPART(Week, faktury.data_wystawienia) AS WW, 
faktury.data_wystawienia, FD.tytul,  Agencje.Symbol as agencja, Agenci.Symbol as agent,
dbo.KLIENCI.Country as kraj, CASE dbo.KLIENCI.Country 
	WHEN 'Polska' THEN 1 ELSE 0 END as b

FROM 
dbo.AGENCJE INNER JOIN dbo.AGENCI ON dbo.AGENCJE.Id_agencji = dbo.AGENCI.ID_AGENCJI
INNER JOIN dbo.FAKTURY ON dbo.AGENCI.F_ROZ = dbo.FAKTURY.[NUMER_ROZ] 
left join dbo.FAktura_details FD on FAKTURY.id_faktury= FD.id_faktury
INNER JOIN dbo.Klienci on dbo.Klienci.CustomerId = dbo.Faktury.id_nabywcy
WHERE 
 (DATEPART(YEAR, faktury.data_wystawienia) &gt;= @od)
AND (DATEPART(YEAR, faktury.data_wystawienia) &lt;= @do)
AND (@tytul is null OR  FD.tytul = @tytul)
AND (@agencja is null OR Agencje.id_agencji = @agencja)
AND (@agent is null OR  Agenci.ID_AGENTA = @agent)
 ) 

AS R
GROUP BY kraj,b
ORDER BY kraj</CommandText>
        <QueryParameters>
          <QueryParameter Name="@od">
            <Value>=Parameters!od.Value</Value>
          </QueryParameter>
          <QueryParameter Name="@do">
            <Value>=Parameters!do.Value</Value>
          </QueryParameter>
          <QueryParameter Name="@tytul">
            <Value>=Parameters!tytul.Value</Value>
          </QueryParameter>
          <QueryParameter Name="@agencja">
            <Value>=Parameters!agencja.Value</Value>
          </QueryParameter>
          <QueryParameter Name="@agent">
            <Value>=Parameters!agent.Value</Value>
          </QueryParameter>
        </QueryParameters>
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
    </DataSet>
    <DataSet Name="ListaAgencji">
      <Fields>
        <Field Name="Id_agencji">
          <DataField>Id_agencji</DataField>
          <rd:TypeName>System.Int32</rd:TypeName>
        </Field>
        <Field Name="Symbol">
          <DataField>Symbol</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>BAZA_REKLAM</DataSourceName>
        <CommandText>SELECT Id_agencji, Symbol
FROM AGENCJE where aktywna=1
union
select NULL ,'Wszystkie'
order by Symbol</CommandText>
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
    </DataSet>
    <DataSet Name="ListaAgentow">
      <Fields>
        <Field Name="ID_AGENTA">
          <DataField>ID_AGENTA</DataField>
          <rd:TypeName>System.Int32</rd:TypeName>
        </Field>
        <Field Name="Symbol">
          <DataField>Symbol</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="agencja">
          <DataField>agencja</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>BAZA_REKLAM</DataSourceName>
        <CommandText>SELECT A.ID_AGENTA, A.Symbol, A2.Symbol agencja
FROM AGENCI A left join Agencje A2
on A.ID_AGENCJI = A2.ID_Agencji
where  (A2.ID_Agencji in (@agencja)) and a.aktywny=1
union
select NULL,'Wszyscy','costam'
order by A.Symbol</CommandText>
        <QueryParameters>
          <QueryParameter Name="@agencja">
            <Value>=Parameters!agencja.Value</Value>
          </QueryParameter>
        </QueryParameters>
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
    </DataSet>
    <DataSet Name="ListaTytulow">
      <Fields>
        <Field Name="label">
          <DataField>label</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="value">
          <DataField>value</DataField>
          <rd:TypeName>System.Int32</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>BAZA_REKLAM</DataSourceName>
        <CommandText>SELECT      SYMB as label,  id as value
FROM            [LISTA TYTUŁÓW] where st_aktywny = -1
union
select 'Wszystkie',NULL</CommandText>
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
    </DataSet>
    <DataSet Name="ListaLat">
      <Fields>
        <Field Name="rok">
          <DataField>rok</DataField>
          <rd:TypeName>System.Int32</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>BAZA_REKLAM</DataSourceName>
        <CommandText>select distinct year(DATA_W) as rok from dbo.NR where DATA_W is not null and year(data_w)&gt;2008 order by year(DATA_W)desc</CommandText>
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
    </DataSet>
  </DataSets>
  <Code>Public Shared Function Formatuj(ByVal Value As Integer) As String
	Formatuj = Format(Value, "### ### ##0.## zł")
End Function</Code>
  <Width>21cm</Width>
  <Body>
    <ColumnSpacing>1cm</ColumnSpacing>
    <ReportItems>
      <Chart Name="chart2">
        <Legend>
          <Visible>true</Visible>
          <Style>
            <BorderStyle>
              <Default>Solid</Default>
            </BorderStyle>
          </Style>
          <Position>RightCenter</Position>
        </Legend>
        <CategoryAxis>
          <Axis>
            <Title />
            <MajorGridLines>
              <Style>
                <BorderStyle>
                  <Default>Solid</Default>
                </BorderStyle>
              </Style>
            </MajorGridLines>
            <MinorGridLines>
              <Style>
                <BorderStyle>
                  <Default>Solid</Default>
                </BorderStyle>
              </Style>
            </MinorGridLines>
            <MajorTickMarks>Outside</MajorTickMarks>
            <Min>0</Min>
            <Visible>true</Visible>
          </Axis>
        </CategoryAxis>
        <ZIndex>3</ZIndex>
        <DataSetName>wgDatyFakturywgPanstw</DataSetName>
        <PlotArea>
          <Style>
            <BackgroundColor>White</BackgroundColor>
          </Style>
        </PlotArea>
        <ThreeDProperties>
          <Enabled>true</Enabled>
          <ProjectionMode>Orthographic</ProjectionMode>
          <Rotation>25</Rotation>
          <Inclination>-30</Inclination>
          <Perspective>49</Perspective>
          <Shading>Real</Shading>
          <WallThickness>49</WallThickness>
          <DrawingStyle>Cylinder</DrawingStyle>
          <Clustered>true</Clustered>
        </ThreeDProperties>
        <PointWidth>0</PointWidth>
        <Top>4.25cm</Top>
        <Subtype>Plain</Subtype>
        <ValueAxis>
          <Axis>
            <Title />
            <MajorGridLines>
              <ShowGridLines>true</ShowGridLines>
              <Style>
                <BorderStyle>
                  <Default>Solid</Default>
                </BorderStyle>
              </Style>
            </MajorGridLines>
            <MinorGridLines>
              <Style>
                <BorderStyle>
                  <Default>Solid</Default>
                </BorderStyle>
              </Style>
            </MinorGridLines>
            <MajorTickMarks>Outside</MajorTickMarks>
            <Min>0</Min>
            <Margin>true</Margin>
            <Visible>true</Visible>
            <Scalar>true</Scalar>
          </Axis>
        </ValueAxis>
        <Type>Pie</Type>
        <Width>12cm</Width>
        <CategoryGroupings>
          <CategoryGrouping>
            <DynamicCategories>
              <Grouping Name="chart2_CategoryGroup1">
                <GroupExpressions>
                  <GroupExpression>=Fields!b.Value</GroupExpression>
                </GroupExpressions>
              </Grouping>
              <Label>=iif(Fields!b.Value=1,"POLSKA","INNE")</Label>
            </DynamicCategories>
          </CategoryGrouping>
        </CategoryGroupings>
        <Palette>Light</Palette>
        <ChartData>
          <ChartSeries>
            <DataPoints>
              <DataPoint>
                <DataValues>
                  <DataValue>
                    <Value>=Sum(Fields!netto.Value)</Value>
                  </DataValue>
                </DataValues>
                <DataLabel>
                  <Value>=Code.Formatuj(Sum(Fields!netto.Value))</Value>
                  <Visible>true</Visible>
                </DataLabel>
                <Marker>
                  <Size>6pt</Size>
                </Marker>
              </DataPoint>
            </DataPoints>
          </ChartSeries>
        </ChartData>
        <Style>
          <BackgroundColor>White</BackgroundColor>
        </Style>
        <Title />
        <Left>4.25cm</Left>
      </Chart>
      <Textbox Name="textbox8">
        <rd:DefaultName>textbox8</rd:DefaultName>
        <Top>0.25cm</Top>
        <Width>9.25cm</Width>
        <Style>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>2</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>10.75cm</Left>
        <Height>0.63492cm</Height>
        <Value>(wg daty wystawienia faktury)</Value>
      </Textbox>
      <Textbox Name="textbox9">
        <rd:DefaultName>textbox9</rd:DefaultName>
        <Top>0.25cm</Top>
        <Width>9.25cm</Width>
        <Style>
          <FontSize>12pt</FontSize>
          <FontWeight>700</FontWeight>
          <TextAlign>Center</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>1</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>1cm</Left>
        <Height>0.63492cm</Height>
        <Value>ZESTAWIENIE SPRZEDAŻY WG PAŃST</Value>
      </Textbox>
      <Table Name="table1">
        <DataSetName>wgDatyFakturywgPanstw</DataSetName>
        <Top>1cm</Top>
        <TableGroups>
          <TableGroup>
            <Grouping Name="table1_Group1">
              <GroupExpressions>
                <GroupExpression>=Fields!kraj.Value</GroupExpression>
              </GroupExpressions>
            </Grouping>
            <Header>
              <TableRows>
                <TableRow>
                  <TableCells>
                    <TableCell>
                      <ReportItems>
                        <Textbox Name="textbox4">
                          <rd:DefaultName>textbox4</rd:DefaultName>
                          <Style>
                            <TextAlign>Center</TextAlign>
                            <VerticalAlign>Middle</VerticalAlign>
                            <PaddingLeft>2pt</PaddingLeft>
                            <PaddingRight>2pt</PaddingRight>
                            <PaddingTop>2pt</PaddingTop>
                            <PaddingBottom>2pt</PaddingBottom>
                          </Style>
                          <ZIndex>12</ZIndex>
                          <CanGrow>true</CanGrow>
                          <Value />
                        </Textbox>
                      </ReportItems>
                    </TableCell>
                    <TableCell>
                      <ReportItems>
                        <Textbox Name="textbox5">
                          <rd:DefaultName>textbox5</rd:DefaultName>
                          <Style>
                            <TextAlign>Center</TextAlign>
                            <VerticalAlign>Middle</VerticalAlign>
                            <PaddingLeft>2pt</PaddingLeft>
                            <PaddingRight>2pt</PaddingRight>
                            <PaddingTop>2pt</PaddingTop>
                            <PaddingBottom>2pt</PaddingBottom>
                          </Style>
                          <ZIndex>11</ZIndex>
                          <CanGrow>true</CanGrow>
                          <Value />
                        </Textbox>
                      </ReportItems>
                    </TableCell>
                    <TableCell>
                      <ReportItems>
                        <Textbox Name="textbox6">
                          <rd:DefaultName>textbox6</rd:DefaultName>
                          <Style>
                            <BackgroundColor>White</BackgroundColor>
                            <VerticalAlign>Middle</VerticalAlign>
                          </Style>
                          <ZIndex>10</ZIndex>
                          <CanGrow>true</CanGrow>
                          <Value />
                        </Textbox>
                      </ReportItems>
                    </TableCell>
                  </TableCells>
                  <Height>0.25cm</Height>
                </TableRow>
                <TableRow>
                  <TableCells>
                    <TableCell>
                      <ReportItems>
                        <Textbox Name="kraj">
                          <rd:DefaultName>kraj</rd:DefaultName>
                          <Style>
                            <FontWeight>700</FontWeight>
                            <TextAlign>Left</TextAlign>
                            <VerticalAlign>Middle</VerticalAlign>
                            <PaddingLeft>12pt</PaddingLeft>
                            <PaddingRight>2pt</PaddingRight>
                            <PaddingTop>2pt</PaddingTop>
                            <PaddingBottom>2pt</PaddingBottom>
                          </Style>
                          <ZIndex>9</ZIndex>
                          <CanGrow>true</CanGrow>
                          <Value>=Iif(IsNothing(Fields!kraj.Value),"Pozostałe",Fields!kraj.Value)</Value>
                        </Textbox>
                      </ReportItems>
                    </TableCell>
                    <TableCell>
                      <ReportItems>
                        <Textbox Name="ilosc">
                          <rd:DefaultName>ilosc</rd:DefaultName>
                          <Style>
                            <FontWeight>700</FontWeight>
                            <TextAlign>Center</TextAlign>
                            <VerticalAlign>Middle</VerticalAlign>
                            <PaddingLeft>2pt</PaddingLeft>
                            <PaddingRight>2pt</PaddingRight>
                            <PaddingTop>2pt</PaddingTop>
                            <PaddingBottom>2pt</PaddingBottom>
                          </Style>
                          <ZIndex>8</ZIndex>
                          <CanGrow>true</CanGrow>
                          <Value>=Sum(Fields!ilosc.Value)</Value>
                        </Textbox>
                      </ReportItems>
                    </TableCell>
                    <TableCell>
                      <ReportItems>
                        <Chart Name="chart1">
                          <Legend>
                            <Style>
                              <BorderStyle>
                                <Default>Solid</Default>
                              </BorderStyle>
                            </Style>
                            <Position>RightCenter</Position>
                          </Legend>
                          <CategoryAxis>
                            <Axis>
                              <Title />
                              <MajorGridLines>
                                <Style>
                                  <BorderStyle>
                                    <Default>Solid</Default>
                                  </BorderStyle>
                                </Style>
                              </MajorGridLines>
                              <MinorGridLines>
                                <Style>
                                  <BorderStyle>
                                    <Default>Solid</Default>
                                  </BorderStyle>
                                </Style>
                              </MinorGridLines>
                              <Min>0</Min>
                            </Axis>
                          </CategoryAxis>
                          <ZIndex>7</ZIndex>
                          <DataSetName>wgDatyFakturywgPanstw</DataSetName>
                          <PlotArea>
                            <Style>
                              <BackgroundColor>White</BackgroundColor>
                            </Style>
                          </PlotArea>
                          <ThreeDProperties>
                            <Enabled>true</Enabled>
                            <Shading>Real</Shading>
                            <DrawingStyle>Cylinder</DrawingStyle>
                          </ThreeDProperties>
                          <PointWidth>0</PointWidth>
                          <SeriesGroupings>
                            <SeriesGrouping>
                              <StaticSeries>
                                <StaticMember>
                                  <Label>Value1</Label>
                                </StaticMember>
                              </StaticSeries>
                            </SeriesGrouping>
                          </SeriesGroupings>
                          <Subtype>Plain</Subtype>
                          <ValueAxis>
                            <Axis>
                              <Title />
                              <MajorGridLines>
                                <Style>
                                  <BorderStyle>
                                    <Default>Solid</Default>
                                  </BorderStyle>
                                </Style>
                              </MajorGridLines>
                              <MinorGridLines>
                                <Style>
                                  <BorderStyle>
                                    <Default>Solid</Default>
                                  </BorderStyle>
                                </Style>
                              </MinorGridLines>
                              <Min>0</Min>
                              <Max>=ReportItems!MAX.Value</Max>
                              <Scalar>true</Scalar>
                            </Axis>
                          </ValueAxis>
                          <Type>Bar</Type>
                          <Palette>Excel</Palette>
                          <ChartData>
                            <ChartSeries>
                              <DataPoints>
                                <DataPoint>
                                  <DataValues>
                                    <DataValue>
                                      <Value>=Fields!netto.Value</Value>
                                    </DataValue>
                                  </DataValues>
                                  <DataLabel>
                                    <Value>=Code.Formatuj(Fields!netto.Value)</Value>
                                    <Visible>true</Visible>
                                  </DataLabel>
                                  <Marker>
                                    <Size>6pt</Size>
                                  </Marker>
                                </DataPoint>
                              </DataPoints>
                            </ChartSeries>
                          </ChartData>
                          <Style>
                            <BackgroundColor>White</BackgroundColor>
                            <VerticalAlign>Middle</VerticalAlign>
                          </Style>
                          <Title>
                            <Style />
                          </Title>
                        </Chart>
                      </ReportItems>
                    </TableCell>
                  </TableCells>
                  <Height>0.63492cm</Height>
                </TableRow>
              </TableRows>
            </Header>
          </TableGroup>
        </TableGroups>
        <Width>19cm</Width>
        <Header>
          <TableRows>
            <TableRow>
              <TableCells>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox1">
                      <rd:DefaultName>textbox1</rd:DefaultName>
                      <Style>
                        <BackgroundColor>WhiteSmoke</BackgroundColor>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <BorderStyle>
                          <Left>Solid</Left>
                          <Right>None</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <BorderWidth>
                          <Default>0.5pt</Default>
                        </BorderWidth>
                        <FontSize>9pt</FontSize>
                        <FontWeight>700</FontWeight>
                        <TextAlign>Center</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>2pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>15</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value>KRAJ</Value>
                    </Textbox>
                  </ReportItems>
                </TableCell>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox2">
                      <rd:DefaultName>textbox2</rd:DefaultName>
                      <Style>
                        <BackgroundColor>WhiteSmoke</BackgroundColor>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <BorderStyle>
                          <Left>None</Left>
                          <Right>None</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <BorderWidth>
                          <Default>0.5pt</Default>
                        </BorderWidth>
                        <FontSize>9pt</FontSize>
                        <FontWeight>700</FontWeight>
                        <TextAlign>Center</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>2pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>14</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value>ILOŚĆ</Value>
                    </Textbox>
                  </ReportItems>
                </TableCell>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox3">
                      <rd:DefaultName>textbox3</rd:DefaultName>
                      <Style>
                        <BackgroundColor>WhiteSmoke</BackgroundColor>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <BorderStyle>
                          <Left>None</Left>
                          <Right>Solid</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <BorderWidth>
                          <Default>0.5pt</Default>
                        </BorderWidth>
                        <FontSize>9pt</FontSize>
                        <FontWeight>700</FontWeight>
                        <TextAlign>Center</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>2pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>13</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value>NETTO</Value>
                    </Textbox>
                  </ReportItems>
                </TableCell>
              </TableCells>
              <Height>0.75cm</Height>
            </TableRow>
          </TableRows>
        </Header>
        <TableColumns>
          <TableColumn>
            <Width>3.5cm</Width>
          </TableColumn>
          <TableColumn>
            <Width>2.25cm</Width>
          </TableColumn>
          <TableColumn>
            <Width>13.25cm</Width>
          </TableColumn>
        </TableColumns>
        <Height>3.15476cm</Height>
        <Footer>
          <TableRows>
            <TableRow>
              <TableCells>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox12">
                      <rd:DefaultName>textbox12</rd:DefaultName>
                      <Style>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <FontWeight>700</FontWeight>
                        <Format>C</Format>
                        <TextAlign>Right</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>12pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>2</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value />
                    </Textbox>
                  </ReportItems>
                </TableCell>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox13">
                      <rd:DefaultName>textbox13</rd:DefaultName>
                      <Style>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <FontWeight>700</FontWeight>
                        <Format>C</Format>
                        <TextAlign>Right</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>12pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>1</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value />
                    </Textbox>
                  </ReportItems>
                </TableCell>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox14">
                      <rd:DefaultName>textbox14</rd:DefaultName>
                      <Style>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <FontWeight>700</FontWeight>
                        <Format>C</Format>
                        <TextAlign>Right</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>12pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <CanGrow>true</CanGrow>
                      <Value />
                    </Textbox>
                  </ReportItems>
                </TableCell>
              </TableCells>
              <Height>0.25cm</Height>
            </TableRow>
            <TableRow>
              <TableCells>
                <TableCell>
                  <ColSpan>3</ColSpan>
                  <ReportItems>
                    <Textbox Name="textbox7">
                      <rd:DefaultName>textbox7</rd:DefaultName>
                      <Style>
                        <BackgroundColor>WhiteSmoke</BackgroundColor>
                        <BorderColor>
                          <Default>LightGrey</Default>
                        </BorderColor>
                        <BorderStyle>
                          <Left>Solid</Left>
                          <Right>Solid</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <FontWeight>700</FontWeight>
                        <Format>C</Format>
                        <TextAlign>Right</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>12pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                        <Language>pl</Language>
                      </Style>
                      <ZIndex>3</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value>="SUMA:  " &amp; Code.Formatuj(Sum(Fields!netto.Value))</Value>
                    </Textbox>
                  </ReportItems>
                </TableCell>
              </TableCells>
              <Height>0.63492cm</Height>
            </TableRow>
            <TableRow>
              <Visibility>
                <Hidden>true</Hidden>
              </Visibility>
              <TableCells>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox10">
                      <rd:DefaultName>textbox10</rd:DefaultName>
                      <Style>
                        <BorderStyle>
                          <Left>Solid</Left>
                          <Right>Solid</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>2pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>6</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value />
                    </Textbox>
                  </ReportItems>
                </TableCell>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="textbox11">
                      <rd:DefaultName>textbox11</rd:DefaultName>
                      <Style>
                        <BorderStyle>
                          <Left>Solid</Left>
                          <Right>Solid</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>2pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                      </Style>
                      <ZIndex>5</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value />
                    </Textbox>
                  </ReportItems>
                </TableCell>
                <TableCell>
                  <ReportItems>
                    <Textbox Name="MAX">
                      <Style>
                        <BorderStyle>
                          <Left>Solid</Left>
                          <Right>Solid</Right>
                          <Top>Solid</Top>
                          <Bottom>Solid</Bottom>
                        </BorderStyle>
                        <TextAlign>Right</TextAlign>
                        <VerticalAlign>Middle</VerticalAlign>
                        <PaddingLeft>2pt</PaddingLeft>
                        <PaddingRight>2pt</PaddingRight>
                        <PaddingTop>2pt</PaddingTop>
                        <PaddingBottom>2pt</PaddingBottom>
                        <Language>pl-PL</Language>
                      </Style>
                      <ZIndex>4</ZIndex>
                      <CanGrow>true</CanGrow>
                      <Value>=Max(Fields!netto.Value)</Value>
                    </Textbox>
                  </ReportItems>
                </TableCell>
              </TableCells>
              <Height>0.63492cm</Height>
            </TableRow>
          </TableRows>
        </Footer>
        <Left>1cm</Left>
      </Table>
    </ReportItems>
    <Height>11.61905cm</Height>
  </Body>
  <Language>en-US</Language>
  <TopMargin>1cm</TopMargin>
  <PageHeight>21cm</PageHeight>
</Report>