<?xml version="1.0"?>
<Reports>
  <FormatVersion>1.0 1.0.0.0</FormatVersion>
  <Report ref="1">
    <Name>Force Page Breaks</Name>
    <DataSourceName>Main</DataSourceName>
    <OnOpen>cnt = 0</OnOpen>
    <Layout />
    <Font>
      <Name>Verdana</Name>
      <Size>9</Size>
      <Bold>false</Bold>
      <Italic>false</Italic>
      <Underline>false</Underline>
      <Strikethrough>false</Strikethrough>
    </Font>
    <DataSources>
      <DataSource>
        <Name>Main</Name>
        <DataProvider>OLEDB</DataProvider>
        <ConnectionString>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|C1NWind.mdb;Persist Security Info=False</ConnectionString>
        <RecordSource>SELECT Categories.CategoryName, Products.*
FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID;
</RecordSource>
      </DataSource>
    </DataSources>
    <Groups>
      <Group>
        <Name>CategoryName</Name>
        <GroupBy>CategoryName</GroupBy>
        <Sort>Ascending</Sort>
        <KeepTogether>KeepFirstDetail</KeepTogether>
        <OutlineLabel>
          <Expression>CategoryName</Expression>
        </OutlineLabel>
      </Group>
    </Groups>
    <Sections>
      <Section>
        <Name>Detail</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>240</Height>
          </SubSection>
        </SubSections>
        <Type>Detail</Type>
        <OnPrint>cnt = cnt + 1
detail.forcepagebreak = "none"

if cnt &gt;= 10 then
  cnt = 0
  detail.forcepagebreak = "after"
endif
</OnPrint>
      </Section>
      <Section>
        <Name>Header</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>2625</Height>
          </SubSection>
        </SubSections>
        <Type>Header</Type>
      </Section>
      <Section>
        <Name>Footer</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
          </SubSection>
        </SubSections>
        <Type>Footer</Type>
        <Visible>false</Visible>
      </Section>
      <Section>
        <Name>PageHeader</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
          </SubSection>
        </SubSections>
        <Type>PageHeader</Type>
        <Visible>false</Visible>
      </Section>
      <Section>
        <Name>PageFooter</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>500</Height>
          </SubSection>
        </SubSections>
        <Type>PageFooter</Type>
      </Section>
      <Section>
        <Name>GroupHeader0</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>1380</Height>
          </SubSection>
        </SubSections>
        <Type>GroupHeader1</Type>
        <Repeat>true</Repeat>
      </Section>
      <Section>
        <Name>GroupFooter0</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
          </SubSection>
        </SubSections>
        <Type>GroupFooter1</Type>
        <Visible>false</Visible>
      </Section>
    </Sections>
    <Fields>
      <Field>
        <Name>titleLbl</Name>
        <Section>Header</Section>
        <Left>75</Left>
        <Top>720</Top>
        <Width>3255</Width>
        <Height>525</Height>
        <Text>Force Page Breaks</Text>
        <Align>LeftMiddle</Align>
        <ForeColor>FF31859C</ForeColor>
        <Font>
          <Name>Calibri</Name>
          <Size>18</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>ftrLeft</Name>
        <Section>PageFooter</Section>
        <Left>0</Left>
        <Top>180</Top>
        <Width>4680</Width>
        <Height>300</Height>
        <Text>Now()</Text>
        <Calculated>true</Calculated>
        <Align>LeftTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>ftrRight</Name>
        <Section>PageFooter</Section>
        <Left>4680</Left>
        <Top>180</Top>
        <Width>4680</Width>
        <Height>300</Height>
        <Text>"Page " &amp; [Page] &amp; " of " &amp; [Pages]</Text>
        <Calculated>true</Calculated>
        <Align>RightTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>CategoryNameLbl</Name>
        <Background type="Solid">
          <Color>FF31859C</Color>
        </Background>
        <Section>GroupHeader1</Section>
        <Left>0</Left>
        <Top>420</Top>
        <Width>9360</Width>
        <Height>345</Height>
        <Text>CategoryName</Text>
        <Calculated>true</Calculated>
        <Align>LeftBottom</Align>
        <ForeColor>FFFFFFFF</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>14.25</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>ProductNameLbl</Name>
        <Section>GroupHeader1</Section>
        <Left>435</Left>
        <Top>855</Top>
        <Width>3345</Width>
        <Height>345</Height>
        <Text>Product Name</Text>
        <Align>LeftBottom</Align>
        <ForeColor>FF31859C</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>11.25</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>QuantityPerUnitLbl</Name>
        <Section>GroupHeader1</Section>
        <Left>3760</Left>
        <Top>850</Top>
        <Width>2486</Width>
        <Height>350</Height>
        <Text>Quantity Per Unit</Text>
        <Align>LeftBottom</Align>
        <ForeColor>FF31859C</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>11.25</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>UnitPriceLbl</Name>
        <Section>GroupHeader1</Section>
        <Left>6286</Left>
        <Top>850</Top>
        <Width>1381</Width>
        <Height>350</Height>
        <Text>Unit Price</Text>
        <Align>RightBottom</Align>
        <ForeColor>FF31859C</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>11.25</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>UnitsInStockLbl</Name>
        <Section>GroupHeader1</Section>
        <Left>7680</Left>
        <Top>855</Top>
        <Width>1320</Width>
        <Height>345</Height>
        <Text>In Stock</Text>
        <Align>RightBottom</Align>
        <ForeColor>FF31859C</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>11.25</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>ProductNameCtl</Name>
        <Section>Detail</Section>
        <Left>435</Left>
        <Top>0</Top>
        <Width>3345</Width>
        <Height>240</Height>
        <AutoHeight>CanGrow</AutoHeight>
        <Text>ProductName</Text>
        <Calculated>true</Calculated>
        <Align>LeftTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>QuantityPerUnitCtl</Name>
        <Section>Detail</Section>
        <Left>3760</Left>
        <Top>0</Top>
        <Width>2486</Width>
        <Height>240</Height>
        <AutoHeight>CanGrow</AutoHeight>
        <Text>QuantityPerUnit</Text>
        <Calculated>true</Calculated>
        <Align>LeftTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>UnitPriceCtl</Name>
        <Section>Detail</Section>
        <Left>6286</Left>
        <Top>0</Top>
        <Width>1381</Width>
        <Height>240</Height>
        <Text>UnitPrice</Text>
        <Calculated>true</Calculated>
        <Format>Currency</Format>
        <Align>RightTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>UnitsInStockCtl</Name>
        <Section>Detail</Section>
        <Left>7680</Left>
        <Top>0</Top>
        <Width>1320</Width>
        <Height>240</Height>
        <Text>UnitsInStock</Text>
        <Calculated>true</Calculated>
        <Align>RightTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>Field1</Name>
        <Section>Header</Section>
        <Left>0</Left>
        <Top>1590</Top>
        <Width>9120</Width>
        <Height>810</Height>
        <MarginLeft>200</MarginLeft>
        <AutoHeight>CanGrow</AutoHeight>
        <Text>This report uses the OnPrint event of the detail section to count how many detail lines have been printed on the current page. When that number equals 10, the script uses the section's ForcePageBreak property to cause a page break.</Text>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>Field2</Name>
        <Section>Detail</Section>
        <Visible>false</Visible>
        <Left>0</Left>
        <Top>0</Top>
        <Width>360</Width>
        <Height>180</Height>
        <Text>cnt</Text>
        <Calculated>true</Calculated>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>Field</Name>
        <Border>
          <Left>
            <Style>Solid</Style>
            <Width>15</Width>
          </Left>
          <Top>
            <Style>Solid</Style>
            <Width>15</Width>
          </Top>
          <Right>
            <Style>Solid</Style>
            <Width>15</Width>
          </Right>
          <Bottom>
            <Style>Solid</Style>
            <Width>15</Width>
          </Bottom>
        </Border>
        <Section>PageFooter</Section>
        <Left>0</Left>
        <Top>150</Top>
        <Width>9345</Width>
        <Height>30</Height>
        <Shape type="LineShape" />
      </Field>
      <Field>
        <Name>ftrLeft1</Name>
        <Section>Header</Section>
        <Left>7020</Left>
        <Top>1005</Top>
        <Width>2235</Width>
        <Height>225</Height>
        <Text>Now()</Text>
        <Calculated>true</Calculated>
        <Align>LeftTop</Align>
        <ForeColor>FF31859C</ForeColor>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>Field3</Name>
        <Section>Header</Section>
        <Left>5385</Left>
        <Top>1005</Top>
        <Width>1545</Width>
        <Height>240</Height>
        <Text>Today</Text>
        <Align>RightTop</Align>
        <ForeColor>FF31859C</ForeColor>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
        </Font>
      </Field>
      <Field>
        <Name>Field4</Name>
        <Section>Header</Section>
        <Left>60</Left>
        <Top>30</Top>
        <Width>4065</Width>
        <Height>600</Height>
        <PictureScale>Scale</PictureScale>
        <Picture>
          <Image> </Image>
        </Picture>
      </Field>
      <Field>
        <Name>Field5</Name>
        <Border>
          <Left>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF31859C</Color>
          </Left>
          <Top>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF31859C</Color>
          </Top>
          <Right>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF31859C</Color>
          </Right>
          <Bottom>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF31859C</Color>
          </Bottom>
        </Border>
        <Section>Header</Section>
        <Left>45</Left>
        <Top>1365</Top>
        <Width>9105</Width>
        <Height>75</Height>
        <Shape type="LineShape" />
      </Field>
      <Field>
        <Name>Field6</Name>
        <Border>
          <Left>
            <Style>Solid</Style>
            <Width>15</Width>
            <Color>FF31859C</Color>
          </Left>
          <Top>
            <Style>Solid</Style>
            <Width>15</Width>
            <Color>FF31859C</Color>
          </Top>
          <Right>
            <Style>Solid</Style>
            <Width>15</Width>
            <Color>FF31859C</Color>
          </Right>
          <Bottom>
            <Style>Solid</Style>
            <Width>15</Width>
            <Color>FF31859C</Color>
          </Bottom>
        </Border>
        <Section>GroupHeader1</Section>
        <Left>45</Left>
        <Top>1275</Top>
        <Width>9210</Width>
        <Height>105</Height>
        <Shape type="LineShape" />
      </Field>
    </Fields>
  </Report>
</Reports>