<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer application="StiReport" version="1.02" type="Flex">
  <Dictionary Ref="1" isKey="true" type="Dictionary">
    <BusinessObjects isList="true" count="0"/>
    <Databases isList="true" count="0"/>
    <DataSources isList="true" count="0"/>
    <Relations isList="true" count="0"/>
    <Report isRef="0"/>
    <Variables isList="true" count="0"/>
  </Dictionary>
  <EngineVersion>EngineV2</EngineVersion>
  <GlobalizationStrings isList="true" count="0"/>
  <MetaTags isList="true" count="0"/>
  <Pages isList="true" count="2">
    <Page1 Ref="2" isKey="true" type="Page">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="1">
        <DataBand1 Ref="3" isKey="true" type="DataBand">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,0.2,7.72,1.8</ClientRectangle>
          <Components isList="true" count="3">
            <Text1 Ref="4" isKey="true" type="Text">
              <Border>All;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>0,0,1.1,1.8</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <GrowToHeight>True</GrowToHeight>
              <Margins>0,0,0,0</Margins>
              <Name>Text1</Name>
              <Page isRef="2"/>
              <Parent isRef="3"/>
              <Text>Text1
Text1
Text1
Text1
Text1</Text>
              <TextBrush>Black</TextBrush>
              <TextQuality>Wysiwyg</TextQuality>
              <Type>Expression</Type>
            </Text1>
            <Text2 Ref="5" isKey="true" type="Text">
              <Border>Top, Right, Bottom;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>1.1,0,0.7,1.8</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <GrowToHeight>True</GrowToHeight>
              <Margins>0,0,0,0</Margins>
              <Name>Text2</Name>
              <Page isRef="2"/>
              <Parent isRef="3"/>
              <Text>Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2
Text2</Text>
              <TextBrush>Black</TextBrush>
              <TextQuality>Wysiwyg</TextQuality>
              <Type>Expression</Type>
            </Text2>
            <Panel1 Ref="6" isKey="true" type="Stimulsoft.Report.Components.StiPanel">
              <Border>Top, Right, Bottom;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>1.8,0,5.9,1.8</ClientRectangle>
              <Components isList="true" count="1">
                <SubReport1 Ref="7" isKey="true" type="SubReport">
                  <Brush>Transparent</Brush>
                  <ClientRectangle>0,0,5.9,1.8</ClientRectangle>
                  <Components isList="true" count="0"/>
                  <Conditions isList="true" count="0"/>
                  <Name>SubReport1</Name>
                  <Page isRef="2"/>
                  <Parent isRef="6"/>
                  <SubReportPageGuid>48ffe99c2b43094401708e8d9bd9ecc7</SubReportPageGuid>
                </SubReport1>
              </Components>
              <Conditions isList="true" count="0"/>
              <GrowToHeight>True</GrowToHeight>
              <Name>Panel1</Name>
              <Page isRef="2"/>
              <Parent isRef="3"/>
            </Panel1>
          </Components>
          <Conditions isList="true" count="0"/>
          <Filters isList="true" count="0"/>
          <Name>DataBand1</Name>
          <Page isRef="2"/>
          <Parent isRef="2"/>
          <Sort isList="true" count="0"/>
        </DataBand1>
      </Components>
      <Conditions isList="true" count="0"/>
      <Guid>5c7fdb174b15424e8426e83b0b7adaec</Guid>
      <Margins>0.39,0.39,0.39,0.39</Margins>
      <Name>Page1</Name>
      <PageHeight>11</PageHeight>
      <PageWidth>8.5</PageWidth>
      <Report isRef="0"/>
      <Watermark Ref="8" isKey="true" type="Stimulsoft.Report.Components.StiWatermark">
        <Font>Arial,100</Font>
        <TextBrush>[50:0:0:0]</TextBrush>
      </Watermark>
    </Page1>
    <Page_SubReport1 Ref="9" isKey="true" type="Page">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="1">
        <DataBand2 Ref="10" isKey="true" type="DataBand">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,0.2,5.9,3.1</ClientRectangle>
          <Components isList="true" count="5">
            <Text3 Ref="11" isKey="true" type="Text">
              <Border>Right;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>0,0,2,0.2</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <GrowToHeight>True</GrowToHeight>
              <Margins>0,0,0,0</Margins>
              <Name>Text3</Name>
              <Page isRef="9"/>
              <Parent isRef="10"/>
              <Text>GrowToHeight - solution (failed)
GrowToHeight = true

Grows to surrounding DataBand2 height.

What is needed is to grow to DataBand1 height (or Panel1.Height) without moving from Subreport.

Static heights (not printing ones)
dataBand2 height: {DataBand2.Height}
dataBand1 height: {DataBand1.Height}
Panel1 height: {Panel1.Height}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,</TextOptions>
              <Type>Expression</Type>
            </Text3>
            <Text5 Ref="12" isKey="true" type="Text">
              <Border>Right;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>4.9,0,0.3,0.2</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <Guid>7c279882b0dda2eb65568e93e2166ddb</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text5</Name>
              <Page isRef="9"/>
              <Parent isRef="10"/>
              <Text>8</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
            </Text5>
            <Text6 Ref="13" isKey="true" type="Text">
              <Border>Right;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>5.2,0,0.3,0.2</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <Guid>2c511fcad60637b45f8f8e944c616839</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text6</Name>
              <Page isRef="9"/>
              <Parent isRef="10"/>
              <Text>14</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
            </Text6>
            <Text7 Ref="14" isKey="true" type="Text">
              <Border>Right;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>5.5,0,0.4,0.2</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <Guid>e8cf5e46c40f8686d6078e951b959705</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text7</Name>
              <Page isRef="9"/>
              <Parent isRef="10"/>
              <Text>63</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
            </Text7>
            <TextBoxBP Ref="15" isKey="true" type="Text">
              <BeforePrintEvent>TextBoxBP.Height = Panel1.Height;</BeforePrintEvent>
              <Border>Right;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>2,0,2.9,0.2</ClientRectangle>
              <Conditions isList="true" count="0"/>
              <Font>Arial,10</Font>
              <Guid>918a13e37d96d1c676d38e9fa5334627</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>TextBoxBP</Name>
              <Page isRef="9"/>
              <Parent isRef="10"/>
              <Text>Before print - solution (failed)
TextBoxBP.Height = Panel1.Height;

Set height to this TextBox on before print to Panel1.Height that holds entire Subreport.
But achieved Panel1.Height is not the calculated one (after performed grow) for this row printing but initial one which is set statically in designer.</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,</TextOptions>
              <Type>Expression</Type>
            </TextBoxBP>
          </Components>
          <Conditions isList="true" count="0"/>
          <Filters isList="true" count="0"/>
          <Name>DataBand2</Name>
          <Page isRef="9"/>
          <Parent isRef="9"/>
          <Sort isList="true" count="0"/>
        </DataBand2>
      </Components>
      <Conditions isList="true" count="0"/>
      <Guid>48ffe99c2b43094401708e8d9bd9ecc7</Guid>
      <Margins>0.39,0.39,0.39,0.39</Margins>
      <Name>Page_SubReport1</Name>
      <PageHeight>11.69</PageHeight>
      <PageWidth>6.68</PageWidth>
      <Report isRef="0"/>
      <Watermark Ref="16" isKey="true" type="Stimulsoft.Report.Components.StiWatermark">
        <Font>Arial,100</Font>
        <TextBrush>[50:0:0:0]</TextBrush>
      </Watermark>
    </Page_SubReport1>
  </Pages>
  <PrinterSettings Ref="17" isKey="true" type="Stimulsoft.Report.Print.StiPrinterSettings"/>
  <ReferencedAssemblies isList="true" count="8">
    <value>System.Dll</value>
    <value>System.Drawing.Dll</value>
    <value>System.Windows.Forms.Dll</value>
    <value>System.Data.Dll</value>
    <value>System.Xml.Dll</value>
    <value>Stimulsoft.Controls.Dll</value>
    <value>Stimulsoft.Base.Dll</value>
    <value>Stimulsoft.Report.Dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Report</ReportAlias>
  <ReportChanged>12/12/2012 11:39:19 AM</ReportChanged>
  <ReportCreated>12/21/2010 03:19:00 AM</ReportCreated>
  <ReportFile>HtmlRendering_1.mrt</ReportFile>
  <ReportGuid>0bcc852e8b5d46bae9e58eb27b818830</ReportGuid>
  <ReportName>Report</ReportName>
  <ReportUnit>Inches</ReportUnit>
  <ReportVersion>2012.3.1500</ReportVersion>
  <Script>using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;

namespace Reports
{
    
    public class Report : Stimulsoft.Report.StiReport
    {
        
        public Report()
        {
            this.InitializeComponent();
        }
        #region StiReport Designer generated code - do not modify
		#endregion StiReport Designer generated code - do not modify
    }
}</Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="0"/>
</StiSerializer>