﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <BusinessObjects isList="true" count="0" />
    <Databases isList="true" count="0" />
    <DataSources isList="true" count="10">
      <Projects Ref="2" type="DataTableSource" isKey="true">
        <Alias>Projects</Alias>
        <Columns isList="true" count="23">
          <value>Architect,System.String</value>
          <value>Client,System.String</value>
          <value>Contractor,System.String</value>
          <value>DateCreated,System.DateTime</value>
          <value>Draftsman,System.String</value>
          <value>Estimator,System.String</value>
          <value>JobAddress,System.String</value>
          <value>JobEMail,System.String</value>
          <value>JobFax,System.String</value>
          <value>JobNumber,System.String</value>
          <value>JobPhone,System.String</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>PrintFlag,System.Boolean</value>
          <value>ProjectManager,System.String</value>
          <value>ScheduledCompletionDate,System.DateTime</value>
          <value>Type,System.Int32</value>
          <value>ID,System.Guid</value>
          <value>Row_ID,System.Int32</value>
          <value>SpecificationGroupList,System.String</value>
          <value>WorkBook,System.Byte[]</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Projects</Name>
        <NameInSource>NewDataSet.Projects</NameInSource>
      </Projects>
      <OptimizationResults Ref="3" type="DataTableSource" isKey="true">
        <Alias>OptimizationResults</Alias>
        <Columns isList="true" count="20">
          <value>AlreadyPrinted,System.Boolean</value>
          <value>BorderCoordinates,System.Byte[]</value>
          <value>DateCreated,System.DateTime</value>
          <value>Index,System.Int32</value>
          <value>IsScrap,System.Boolean</value>
          <value>LinkID,System.String</value>
          <value>LinkIDPart,System.String</value>
          <value>LinkIDSheet,System.String</value>
          <value>LinkIDStack,System.String</value>
          <value>LinkIDStrip,System.String</value>
          <value>LinkIDWorkOrderBatch,System.String</value>
          <value>OptimizedQuantity,System.Int32</value>
          <value>OptimizerRotated,System.Boolean</value>
          <value>PrintFlag,System.Boolean</value>
          <value>TrueShapedLength,System.Double</value>
          <value>TrueShapedWidth,System.Double</value>
          <value>Type,System.Int32</value>
          <value>XCoord,System.Double</value>
          <value>YCoord,System.Double</value>
          <value>ID,System.Guid</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>OptimizationResults</Name>
        <NameInSource>NewDataSet.OptimizationResults</NameInSource>
      </OptimizationResults>
      <Parts Ref="4" type="DataTableSource" isKey="true">
        <Alias>Parts</Alias>
        <Columns isList="true" count="115">
          <value>AdjustedCutPartLength,System.Double</value>
          <value>AdjustedCutPartWidth,System.Double</value>
          <value>Barcode,System.String</value>
          <value>BasePoint,System.Int32</value>
          <value>BasePointX,System.Double</value>
          <value>BasePointY,System.Double</value>
          <value>BasePointZ,System.Double</value>
          <value>Code,System.String</value>
          <value>Comments,System.String</value>
          <value>Comments2,System.String</value>
          <value>Comments3,System.String</value>
          <value>CutPartLength,System.Double</value>
          <value>CutPartWidth,System.Double</value>
          <value>DateCreated,System.DateTime</value>
          <value>DontIncludeRoutesinNestBorder,System.Boolean</value>
          <value>DrawToken2DElv,System.String</value>
          <value>DrawToken3D,System.String</value>
          <value>DXFFileName,System.String</value>
          <value>EdgeBarcodeBottom,System.String</value>
          <value>EdgeBarcodeLeft,System.String</value>
          <value>EdgeBarcodeRight,System.String</value>
          <value>EdgeBarcodeTop,System.String</value>
          <value>EdgeFileNameBottom,System.String</value>
          <value>EdgeFileNameLeft,System.String</value>
          <value>EdgeFileNameRight,System.String</value>
          <value>EdgeFileNameTop,System.String</value>
          <value>EdgeNameBottom,System.String</value>
          <value>EdgeNameLeft,System.String</value>
          <value>EdgeNameRight,System.String</value>
          <value>EdgeNameTop,System.String</value>
          <value>Face6Barcode,System.String</value>
          <value>Face6FileName,System.String</value>
          <value>FileName,System.String</value>
          <value>FullFace6FileName,System.String</value>
          <value>FullFileName,System.String</value>
          <value>Grain,System.Int32</value>
          <value>HatchType,System.Int32</value>
          <value>Index,System.Int32</value>
          <value>InventoryAvailableQty,System.Double</value>
          <value>InventoryCurrentQty,System.Double</value>
          <value>InventoryMinQty,System.Double</value>
          <value>JPegStream,System.Byte[]</value>
          <value>Length,System.Double</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>LinkIDDefaultVendor,System.String</value>
          <value>LinkIDEdgeBottom,System.String</value>
          <value>LinkIDEdgeLeft,System.String</value>
          <value>LinkIDEdgeRight,System.String</value>
          <value>LinkIDEdgeTop,System.String</value>
          <value>LinkIDEQPart,System.String</value>
          <value>LinkIDMaterial,System.String</value>
          <value>LinkIDProcessingStations,System.String</value>
          <value>LinkIDProduct,System.String</value>
          <value>LinkIDProject,System.String</value>
          <value>LinkIDSheetSize,System.String</value>
          <value>LinkIDSubAssembly,System.String</value>
          <value>LinkIDVendor,System.String</value>
          <value>MachinePoint,System.String</value>
          <value>MarkUp,System.Double</value>
          <value>MaterialCode,System.String</value>
          <value>MaterialName,System.String</value>
          <value>MaterialThickness,System.Double</value>
          <value>MaterialType,System.Int32</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>OverridePartCutLength,System.Double</value>
          <value>OverridePartCutThickness,System.Double</value>
          <value>OverridePartCutWidth,System.Double</value>
          <value>PartType,System.Int32</value>
          <value>PerfectGrainCaption,System.String</value>
          <value>PrintFlag,System.Boolean</value>
          <value>Processed,System.Boolean</value>
          <value>Quantity,System.Double</value>
          <value>RotationX,System.Double</value>
          <value>RotationY,System.Double</value>
          <value>RotationZ,System.Double</value>
          <value>Row_ID,System.Int32</value>
          <value>RunFieldNameFace5,System.String</value>
          <value>RunFieldNameFace6,System.String</value>
          <value>Thickness,System.Double</value>
          <value>TiffStream,System.Byte[]</value>
          <value>TotalQuantity,System.Double</value>
          <value>Type,System.Int32</value>
          <value>UnitType,System.Int32</value>
          <value>VendorCost,System.Double</value>
          <value>WasteFactor,System.Double</value>
          <value>Width,System.Double</value>
          <value>WMFStream,System.Byte[]</value>
          <value>WMFStreamDimensioned,System.Byte[]</value>
          <value>WMFStreamFace6,System.Byte[]</value>
          <value>WMFStreamFace6Dimensioned,System.Byte[]</value>
          <value>ID,System.Guid</value>
          <value>MachiningObjects,System.Byte[]</value>
          <value>NameCode,System.String</value>
          <value>ActivityPath,System.String</value>
          <value>ActivityPathShort,System.String</value>
          <value>BrdFtCost,System.Double</value>
          <value>CostLabor,System.Double</value>
          <value>DrawToken2D,System.String</value>
          <value>EachCost,System.Double</value>
          <value>EdgeCode,System.String</value>
          <value>EdgeLength1,System.String</value>
          <value>EdgeLength2,System.String</value>
          <value>EdgeWidth1,System.String</value>
          <value>EdgeWidth2,System.String</value>
          <value>GrainFlag,System.Int32</value>
          <value>LinFtCost,System.Double</value>
          <value>LinkIDEdgeLength1,System.String</value>
          <value>LinkIDEdgeLength2,System.String</value>
          <value>LinkIDEdgeWidth1,System.String</value>
          <value>LinkIDEdgeWidth2,System.String</value>
          <value>PartActivityPathType,System.Int32</value>
          <value>PriceLabor,System.Double</value>
          <value>SqFtCost,System.Double</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Parts</Name>
        <NameInSource>NewDataSet.Parts</NameInSource>
      </Parts>
      <PlacedSheets Ref="5" type="DataTableSource" isKey="true">
        <Alias>PlacedSheets</Alias>
        <Columns isList="true" count="47">
          <value>Code,System.String</value>
          <value>Comments,System.String</value>
          <value>CPOUTNumber,System.Int32</value>
          <value>DateCreated,System.DateTime</value>
          <value>Face6FileName,System.String</value>
          <value>FileName,System.String</value>
          <value>FullFace6FileName,System.String</value>
          <value>FullFileName,System.String</value>
          <value>Grain,System.Int32</value>
          <value>HatchType,System.Int32</value>
          <value>Index,System.Int32</value>
          <value>InventoryAvailableQty,System.Double</value>
          <value>InventoryCurrentQty,System.Double</value>
          <value>InventoryMinQty,System.Double</value>
          <value>JPegStream,System.Byte[]</value>
          <value>LeadingLengthTrim,System.Double</value>
          <value>LeadingWidthTrim,System.Double</value>
          <value>Length,System.Double</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>LinkIDDefaultVendor,System.String</value>
          <value>LinkIDMaterial,System.String</value>
          <value>LinkIDProcessingStation,System.String</value>
          <value>LinkIDSheetSize,System.String</value>
          <value>LinkIDStack,System.String</value>
          <value>LinkIDSubType,System.String</value>
          <value>LinkIDWorkOrderBatch,System.String</value>
          <value>MarkUp,System.Double</value>
          <value>MaterialCost,System.Double</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>OptimizationPriority,System.Int32</value>
          <value>OptimizationType,System.Int32</value>
          <value>Quantity,System.Double</value>
          <value>Thickness,System.Double</value>
          <value>TiffStream,System.Byte[]</value>
          <value>TrailingLengthTrim,System.Double</value>
          <value>TrailingWidthTrim,System.Double</value>
          <value>Type,System.Int32</value>
          <value>UnitType,System.Int32</value>
          <value>WasteFactor,System.Double</value>
          <value>Width,System.Double</value>
          <value>WMFStream,System.Byte[]</value>
          <value>WMFStreamFace6,System.Byte[]</value>
          <value>ID,System.Guid</value>
          <value>MachiningObjects,System.Byte[]</value>
          <value>NameCode,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>PlacedSheets</Name>
        <NameInSource>NewDataSet.PlacedSheets</NameInSource>
      </PlacedSheets>
      <Products Ref="6" type="DataTableSource" isKey="true">
        <Alias>Products</Alias>
        <Columns isList="true" count="66">
          <value>ActivityPath,System.String</value>
          <value>ActivityPathShort,System.String</value>
          <value>AncorType,System.Int32</value>
          <value>Angle,System.Double</value>
          <value>Comments,System.String</value>
          <value>Comments1,System.String</value>
          <value>Comments2,System.String</value>
          <value>Comments3,System.String</value>
          <value>CopiedLinkIDList,System.String</value>
          <value>DateCreated,System.DateTime</value>
          <value>Depth,System.Double</value>
          <value>DoPerfectGrain,System.Boolean</value>
          <value>DrawIndex,System.Int32</value>
          <value>Extruded,System.Boolean</value>
          <value>Height,System.Double</value>
          <value>IsBuyOut,System.Boolean</value>
          <value>ItemNumber,System.String</value>
          <value>JPegName,System.String</value>
          <value>JPegStream,System.Byte[]</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>LinkIDLibrary,System.String</value>
          <value>LinkIDLocation,System.String</value>
          <value>LinkIDProductGroup,System.String</value>
          <value>LinkIDProject,System.String</value>
          <value>LinkIDRelease,System.String</value>
          <value>LinkIDSpecificationGroup,System.String</value>
          <value>LinkIDWall,System.String</value>
          <value>LinkIDWorkOrder,System.String</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>PerfectGrainChar,System.String</value>
          <value>PrintFlag,System.Boolean</value>
          <value>Quantity,System.Int32</value>
          <value>QuoteName,System.String</value>
          <value>RoomComponentType,System.Int32</value>
          <value>RoomName,System.String</value>
          <value>Row_ID,System.Int32</value>
          <value>ShippingTicketName,System.String</value>
          <value>TiffName,System.String</value>
          <value>TiffStream,System.Byte[]</value>
          <value>Type,System.Int32</value>
          <value>UITreeFilter,System.Int32</value>
          <value>Width,System.Double</value>
          <value>WMFName,System.String</value>
          <value>WMFStream,System.Byte[]</value>
          <value>WorkBook,System.Byte[]</value>
          <value>WorkOrderName,System.String</value>
          <value>X,System.Double</value>
          <value>Y,System.Double</value>
          <value>Z,System.Double</value>
          <value>ID,System.Guid</value>
          <value>LinkIDPriceGroup,System.String</value>
          <value>LinkIDRoom,System.String</value>
          <value>LaborCost,System.Double</value>
          <value>LibraryPrice,System.Double</value>
          <value>MaterialCost,System.Double</value>
          <value>PriceAdjustment,System.Double</value>
          <value>ELX,System.Double</value>
          <value>ELY,System.Double</value>
          <value>IsInstalled,System.Boolean</value>
          <value>LinkIDMarkups,System.String</value>
          <value>LongName,System.String</value>
          <value>ProductStyle,System.Int32</value>
          <value>StatisticsWeight,System.Double</value>
          <value>StatusProduction,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Products</Name>
        <NameInSource>NewDataSet.Products</NameInSource>
      </Products>
      <Prompts Ref="7" type="DataTableSource" isKey="true">
        <Alias>Prompts</Alias>
        <Columns isList="true" count="13">
          <value>ControlType,System.Int32</value>
          <value>DateCreated,System.DateTime</value>
          <value>HideOnReports,System.Boolean</value>
          <value>IsQuantity,System.Boolean</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>LinkIDProduct,System.String</value>
          <value>LinkIDSubassembly,System.String</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>Type,System.Int32</value>
          <value>Value,System.String</value>
          <value>ID,System.Guid</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Prompts</Name>
        <NameInSource>NewDataSet.Prompts</NameInSource>
      </Prompts>
      <Subassemblies Ref="8" type="DataTableSource" isKey="true">
        <Alias>Subassemblies</Alias>
        <Columns isList="true" count="49">
          <value>ActivityPath,System.String</value>
          <value>ActivityPathShort,System.String</value>
          <value>Angle,System.Double</value>
          <value>BayPosition,System.Int32</value>
          <value>Comments,System.String</value>
          <value>Comments1,System.String</value>
          <value>Comments2,System.String</value>
          <value>Comments3,System.String</value>
          <value>DateCreated,System.DateTime</value>
          <value>Depth,System.Double</value>
          <value>DrawIndex,System.Int32</value>
          <value>Height,System.Double</value>
          <value>IsBuyOut,System.Boolean</value>
          <value>JPegName,System.String</value>
          <value>JPegStream,System.Byte[]</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>LinkIDLibrary,System.String</value>
          <value>LinkIDParentProduct,System.String</value>
          <value>LinkIDParentSubassembly,System.String</value>
          <value>LinkIDProject,System.String</value>
          <value>Modified,System.Boolean</value>
          <value>ModifiedRowID,System.Int32</value>
          <value>Name,System.String</value>
          <value>PerfectGrainCaption,System.String</value>
          <value>Quantity,System.Int32</value>
          <value>TiffName,System.String</value>
          <value>TiffStream,System.Byte[]</value>
          <value>Type,System.Int32</value>
          <value>Width,System.Double</value>
          <value>WMFName,System.String</value>
          <value>WMFStream,System.Byte[]</value>
          <value>WorkBook,System.Byte[]</value>
          <value>X,System.Double</value>
          <value>Y,System.Double</value>
          <value>Z,System.Double</value>
          <value>ID,System.Guid</value>
          <value>LaborCost,System.Double</value>
          <value>LibraryPrice,System.Double</value>
          <value>MaterialCost,System.Double</value>
          <value>PriceAdjustment,System.Double</value>
          <value>ELX,System.Double</value>
          <value>ELY,System.Double</value>
          <value>IsInstalled,System.Boolean</value>
          <value>LinkIDMarkups,System.String</value>
          <value>LongName,System.String</value>
          <value>ProductStyle,System.Int32</value>
          <value>StatisticsWeight,System.Double</value>
          <value>StatusProduction,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Subassemblies</Name>
        <NameInSource>NewDataSet.Subassemblies</NameInSource>
      </Subassemblies>
      <NestScrap Ref="9" type="DataTableSource" isKey="true">
        <Alias>NestScrap</Alias>
        <Columns isList="true" count="16">
          <value>DateCreated,System.DateTime</value>
          <value>IDScrap,System.Int32</value>
          <value>Length,System.Double</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>LinkIDNestScrapBin,System.String</value>
          <value>MaterialCode,System.String</value>
          <value>MaterialName,System.String</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>Quantity,System.Int32</value>
          <value>Thickness,System.Double</value>
          <value>Width,System.Double</value>
          <value>ID,System.Guid</value>
          <value>Row_ID,System.Int32</value>
          <value>LinkIDWorkOrderBatch,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>NestScrap</Name>
        <NameInSource>NewDataSet.NestScrap</NameInSource>
      </NestScrap>
      <NestScrapBin Ref="10" type="DataTableSource" isKey="true">
        <Alias>NestScrapBin</Alias>
        <Columns isList="true" count="8">
          <value>DateCreated,System.DateTime</value>
          <value>Description,System.String</value>
          <value>LinkID,System.String</value>
          <value>LinkIDCategory,System.String</value>
          <value>Modified,System.Boolean</value>
          <value>Name,System.String</value>
          <value>ID,System.Guid</value>
          <value>Row_ID,System.Int32</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>NestScrapBin</Name>
        <NameInSource>NewDataSet.NestScrapBin</NameInSource>
      </NestScrapBin>
      <ProductsPrompts Ref="11" type="DataTableSource" isKey="true">
        <Alias>ProductsPrompts</Alias>
        <Columns isList="true" count="4">
          <value>LinkIDProduct,System.String</value>
          <value>LinkIDPrompt,System.String</value>
          <value>LinkIDSubassembly,System.String</value>
          <value>ID,System.Guid</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>ProductsPrompts</Name>
        <NameInSource>NewDataSet.ProductsPrompts</NameInSource>
      </ProductsPrompts>
    </DataSources>
    <Relations isList="true" count="6">
      <Parts Ref="12" type="DataRelation" isKey="true">
        <Alias>Parts</Alias>
        <ChildColumns isList="true" count="1">
          <value>LinkIDPart</value>
        </ChildColumns>
        <ChildSource isRef="3" />
        <Dictionary isRef="1" />
        <Name>Parts</Name>
        <NameInSource>Parts-OptimizationResults</NameInSource>
        <ParentColumns isList="true" count="1">
          <value>LinkID</value>
        </ParentColumns>
        <ParentSource isRef="4" />
      </Parts>
      <Products Ref="13" type="DataRelation" isKey="true">
        <Alias>Products</Alias>
        <ChildColumns isList="true" count="1">
          <value>LinkIDProduct</value>
        </ChildColumns>
        <ChildSource isRef="4" />
        <Dictionary isRef="1" />
        <Name>Products</Name>
        <NameInSource>Products-Parts</NameInSource>
        <ParentColumns isList="true" count="1">
          <value>LinkID</value>
        </ParentColumns>
        <ParentSource isRef="6" />
      </Products>
      <Projects Ref="14" type="DataRelation" isKey="true">
        <Alias>Projects</Alias>
        <ChildColumns isList="true" count="1">
          <value>LinkIDProject</value>
        </ChildColumns>
        <ChildSource isRef="6" />
        <Dictionary isRef="1" />
        <Name>Projects</Name>
        <NameInSource>Projects-Products</NameInSource>
        <ParentColumns isList="true" count="1">
          <value>LinkID</value>
        </ParentColumns>
        <ParentSource isRef="2" />
      </Projects>
      <PlacedSheets Ref="15" type="DataRelation" isKey="true">
        <Alias>PlacedSheets</Alias>
        <ChildColumns isList="true" count="1">
          <value>LinkIDSheet</value>
        </ChildColumns>
        <ChildSource isRef="3" />
        <Dictionary isRef="1" />
        <Name>PlacedSheets</Name>
        <NameInSource>PlacedSheets-OptimizationResults</NameInSource>
        <ParentColumns isList="true" count="1">
          <value>LinkID</value>
        </ParentColumns>
        <ParentSource isRef="5" />
      </PlacedSheets>
      <NestScrap Ref="16" type="DataRelation" isKey="true">
        <Alias>NestScrap</Alias>
        <ChildColumns isList="true" count="1">
          <value>LinkIDPart</value>
        </ChildColumns>
        <ChildSource isRef="3" />
        <Dictionary isRef="1" />
        <Name>NestScrap</Name>
        <NameInSource>NestScrap-OptimizationResults</NameInSource>
        <ParentColumns isList="true" count="1">
          <value>LinkID</value>
        </ParentColumns>
        <ParentSource isRef="9" />
      </NestScrap>
      <NestScrapBin Ref="17" type="DataRelation" isKey="true">
        <Alias>NestScrapBin</Alias>
        <ChildColumns isList="true" count="1">
          <value>LinkIDNestScrapBin</value>
        </ChildColumns>
        <ChildSource isRef="9" />
        <Dictionary isRef="1" />
        <Name>NestScrapBin</Name>
        <NameInSource>NestScrapBin-NestScrap</NameInSource>
        <ParentColumns isList="true" count="1">
          <value>LinkID</value>
        </ParentColumns>
        <ParentSource isRef="10" />
      </NestScrapBin>
    </Relations>
    <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="1">
    <Page1 Ref="18" type="Page" isKey="true">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <ColumnGaps>0.125</ColumnGaps>
      <Columns>1</Columns>
      <Components isList="true" count="1">
        <DataOptimizationResults Ref="19" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <BusinessObjectGuid isNull="true" />
          <ClientRectangle>0,0.16,3.88,1.82</ClientRectangle>
          <Components isList="true" count="25">
            <Text2 Ref="20" type="Text" isKey="true">
              <Border>All;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,0.6,0.45</ClientRectangle>
              <Conditions isList="true" count="1">
                <value>OptimizationResults.IsScrap,EqualTo,true,,Boolean,Black,Transparent,Arial_x002C_15.75_x002C_Regular_x002C_Point_x002C_False_x002C_0,True,False,,,All</value>
              </Conditions>
              <Font>Arial,18</Font>
              <Guid>8dac9850aa7243eeb77ac65047477750</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text2</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, OptimizationResults.Parts.Products.ItemNumber, "Scrap")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text2>
            <Text1 Ref="21" type="Text" isKey="true">
              <Border>Top, Right, Bottom;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>0.6,0.3,1.6,0.15</ClientRectangle>
              <Conditions isList="true" count="1">
                <value>OptimizationResults.IsScrap,EqualTo,True,,String,Black,Gainsboro,Arial_x002C_8_x002C_Bold_x007C__x0020_Underline,True,False,,,All</value>
              </Conditions>
              <Font>Arial,9,Bold</Font>
              <Guid>ca1f2cf51ce748d2a5d0c0e91c2f0ed5</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text1</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, OptimizationResults.Parts.Name, (" W " &amp; MVValueFormat(OptimizationResults.NestScrap.Width) &amp; " x L " &amp; MVValueFormat(OptimizationResults.NestScrap.Length)))}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text1>
            <Text7 Ref="22" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.6,0,2.18,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,9,Bold</Font>
              <Guid>bc11f565d53b41afb49628e4b3dbf60e</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text7</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, OptimizationResults.Parts.Products.Projects.Name, "- - - - - - - - - - - - - - - - - -")} - {IIF(OptimizationResults.IsScrap = False, OptimizationResults.Parts.Products.RoomName, "")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text7>
            <Text8 Ref="23" type="Text" isKey="true">
              <Border>Top, Right, Bottom;Black;1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>0.6,0.13,1.6,0.17</ClientRectangle>
              <Conditions isList="true" count="1">
                <value>OptimizationResults.IsScrap,EqualTo,true,,Boolean,Black,Transparent,Arial_x0020_Narrow_x002C_8.25_x002C_Bold_x007C__x0020_Italic_x002C_Point_x002C_False_x002C_0,True,False,,,All</value>
              </Conditions>
              <Font>Arial,9,Bold| Italic</Font>
              <Guid>6e887fadcfd14badbb0918ef26cb8d96</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text8</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, IIF(OptimizationResults.PlacedSheets.Comments = "", OptimizationResults.Parts.MaterialName, MVModifiedScrapName(OptimizationResults.PlacedSheets.Comments, OptimizationResults.PlacedSheets.Name)), OptimizationResults.NestScrap.Name)}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text8>
            <Text12 Ref="24" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.01,0.75,0.26,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,5</Font>
              <Guid>f868484596fa46059099b7bd9fff170d</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text12</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, "EBW1", "")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text12>
            <Text11 Ref="25" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.27,0.74,1.03,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,6</Font>
              <Guid>4ac97f81c2c140b3a66f0f82b0dbedd3</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text11</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{OptimizationResults.Parts.EdgeNameLeft}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text11>
            <Text13 Ref="26" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.27,0.85,1.03,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,6</Font>
              <Guid>c903972ee0fb4db8ad83f7bd00d18a95</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text13</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{OptimizationResults.Parts.EdgeNameRight}</Text>
              <TextBrush>Black</TextBrush>
              <Type>DataColumn</Type>
              <VertAlignment>Center</VertAlignment>
            </Text13>
            <Text14 Ref="27" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.01,0.85,0.26,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,5</Font>
              <Guid>de4124a1d4bf44d29ea26a3bd196abce</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text14</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, "EBW2", "")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text14>
            <Text4 Ref="28" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.3,0.75,0.2,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,5</Font>
              <Guid>d9f24f75e1624dacb1e02ef01211c71e</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text4</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, "EBL1", "")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text4>
            <Text10 Ref="29" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.3,0.85,0.2,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,5</Font>
              <Guid>253ae838fef145729d2e54766c39ba8c</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text10</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, "EBL2", "")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text10>
            <Text3 Ref="30" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.5,0.74,1.37,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,6</Font>
              <Guid>1a501546d1774b0291919f81ed1dfc23</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text3</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{OptimizationResults.Parts.EdgeNameTop}</Text>
              <TextBrush>Black</TextBrush>
              <Type>DataColumn</Type>
              <VertAlignment>Center</VertAlignment>
            </Text3>
            <Text9 Ref="31" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.5,0.85,1.37,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,6</Font>
              <Guid>d2fd3f42a525446bb773966f3e34e528</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text9</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{OptimizationResults.Parts.EdgeNameBottom}</Text>
              <TextBrush>Black</TextBrush>
              <Type>DataColumn</Type>
              <VertAlignment>Center</VertAlignment>
            </Text9>
            <Text16 Ref="32" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.89,0,0.75,0.13</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,6</Font>
              <Guid>fd64eb8bf3ea40b489aa688a3a0e1295</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text16</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{OptimizationResults.Parts.FileName}</Text>
              <TextBrush>Black</TextBrush>
              <VertAlignment>Center</VertAlignment>
            </Text16>
            <Image1 Ref="33" type="Image" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.58,1.02,0.83,0.63</ClientRectangle>
              <Conditions isList="true" count="0" />
              <DataColumn>OptimizationResults.Parts_OptimizationResults.WMFStream</DataColumn>
              <Guid>6fabddf8ba5c442788deba0162fe630a</Guid>
              <HorAlignment>Center</HorAlignment>
              <Name>Image1</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Stretch>True</Stretch>
              <VertAlignment>Center</VertAlignment>
            </Image1>
            <Text15 Ref="34" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.21,0.1,1.52,0.25</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Microsoft Sans Serif,18</Font>
              <Guid>ab1421fae8ca44af862d99cb56e8be5c</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text15</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{OptimizationResults.Parts.FileName}</Text>
              <TextBrush>Black</TextBrush>
              <VertAlignment>Center</VertAlignment>
            </Text15>
            <Text5 Ref="35" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0.45,1.86,0.17</ClientRectangle>
              <Conditions isList="true" count="1">
                <value>OptimizationResults.IsScrap,EqualTo,true,,Boolean,Black,Transparent,Arial_x002C_8.25_x002C_Regular_x002C_Point_x002C_False_x002C_0,True,False,,,All</value>
              </Conditions>
              <Font>Arial,8</Font>
              <Guid>247ce31719dd4fdba886c81696f7cf1b</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text5</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, "Cut Size:  W ", "  Location: ")}{IIF(OptimizationResults.IsScrap = False, MVValueFormat(OptimizationResults.Parts.CutPartWidth) &amp; " x L ", OptimizationResults.NestScrap.NestScrapBin.Name)}{IIF(OptimizationResults.IsScrap = False, MVValueFormat(OptimizationResults.Parts.CutPartLength), "")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text5>
            <Text6 Ref="36" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0.6,1.87,0.17</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,8</Font>
              <Guid>6f32649a3285430190aa6a5860ae89dc</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text6</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.IsScrap = False, "Fin Size: W " &amp; MVValueFormat(OptimizationResults.Parts.Width) &amp; " x L" &amp; MVValueFormat(OptimizationResults.Parts.Length), "")} </Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text6>
            <Text17 Ref="37" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.31,0.6,0.65,0.18</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,12</Font>
              <Guid>2f1948726d294c3fb91cb69ffa0c9ecd</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text17</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>#{OptimizationResults.Index}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text17>
            <Text18 Ref="38" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.3,0.46,0.73,0.15</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,8,Bold</Font>
              <Guid>f03885f214cd44e78ebb53e9356f8fae</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text18</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{Microvellum.Globalization.Culturestrings.PARTINDEX}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text18>
            <Text19 Ref="39" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.86,0.46,0.54,0.15</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,8,Bold</Font>
              <Guid>9dd2e5e79de9434c85a897fac1b1a6d4</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text19</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{Microvellum.Globalization.Culturestrings.SHEET}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text19>
            <Text20 Ref="40" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.86,0.6,0.53,0.18</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,12</Font>
              <Guid>9804aa4ba18b4d47ab13536beb54df3b</Guid>
              <Margins>0,0,0,0</Margins>
              <Name>Text20</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>#{OptimizationResults.PlacedSheets.Index}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text20>
            <Text21 Ref="41" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.22,0.35,0.72,0.12</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,8,Bold</Font>
              <Guid>bae4d034d3bf42cba27cc181754a8a29</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text21</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>{IIF(OptimizationResults.Type="2",Microvellum.Globalization.Culturestrings.NESTING,"Sawing")}</Text>
              <TextBrush>Black</TextBrush>
              <VertAlignment>Center</VertAlignment>
            </Text21>
            <Image2 Ref="42" type="Image" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.3,1.02,0.83,0.63</ClientRectangle>
              <Conditions isList="true" count="0" />
              <DataColumn>OptimizationResults.Parts_OptimizationResults.WMFStreamFace6</DataColumn>
              <HorAlignment>Center</HorAlignment>
              <Name>Image2</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Stretch>True</Stretch>
              <VertAlignment>Center</VertAlignment>
            </Image2>
            <Text22 Ref="43" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0.28,0.99,0.28,0.68</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,8,Bold</Font>
              <Guid>49dd0c3d6c22413bbc9f2722fd87da3b</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text22</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>Face 5</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=False, Angle=90, FirstTabOffset=40, DistanceBetweenTabs=20,</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text22>
            <Text23 Ref="44" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2,1,0.28,0.68</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Arial,8,Bold</Font>
              <Guid>d83382e2c1274ef39dbf7114a45ae5ec</Guid>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text23</Name>
              <Page isRef="18" />
              <Parent isRef="19" />
              <Text>Face 6</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=False, Angle=90, FirstTabOffset=40, DistanceBetweenTabs=20,</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text23>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <DataSourceName>OptimizationResults</DataSourceName>
          <Filters isList="true" count="1">
            <value>PrintFlag,EqualTo,true,,Boolean</value>
          </Filters>
          <Name>DataOptimizationResults</Name>
          <Page isRef="18" />
          <Parent isRef="18" />
          <Sort isList="true" count="0" />
        </DataOptimizationResults>
      </Components>
      <Conditions isList="true" count="0" />
      <Guid>9cdb748067864e50881753558303f354</Guid>
      <LargeHeight>True</LargeHeight>
      <LargeHeightFactor>2</LargeHeightFactor>
      <Margins>0.062,0.062,0.062,0.062</Margins>
      <Name>Page1</Name>
      <PageHeight>2</PageHeight>
      <PageWidth>4</PageWidth>
      <PaperSize>Letter</PaperSize>
      <PrintOnPreviousPage>True</PrintOnPreviousPage>
      <Report isRef="0" />
      <Watermark Ref="45" type="Stimulsoft.Report.Components.StiWatermark" isKey="true">
        <Font>Arial,100</Font>
        <TextBrush>[50:0:0:0]</TextBrush>
      </Watermark>
    </Page1>
  </Pages>
  <PrinterSettings Ref="46" type="Stimulsoft.Report.Print.StiPrinterSettings" isKey="true" />
  <ReferencedAssemblies isList="true" count="10">
    <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>
    <value>Microvellum.Globalization.Dll</value>
    <value>Microvellum.Objects.dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Report</ReportAlias>
  <ReportChanged>10/29/2012 5:21:05 PM</ReportChanged>
  <ReportCreated>5/26/2010 1:33:13 PM</ReportCreated>
  <ReportFile>C:\Users\doug.MICROVELLUM\AppData\Local\Temp\Nest_Part_Labels(EMF).mrt</ReportFile>
  <ReportGuid>60ed834bd2fc42409817fa79b6b777af</ReportGuid>
  <ReportName>Report</ReportName>
  <ReportUnit>Inches</ReportUnit>
  <ReportVersion>2012.3.1402</ReportVersion>
  <Script>Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Data
Imports Stimulsoft.Controls
Imports Stimulsoft.Base.Drawing
Imports Stimulsoft.Report
Imports Stimulsoft.Report.Dialogs
Imports Stimulsoft.Report.Components
Imports Microvellum.Globalization
Imports Microvellum.Objects


Namespace Reports
    
    Public Class Report
		Inherits Stimulsoft.Report.StiReport
        
		Public Sub New()
			MyBase.New
			Me.InitializeComponent
		End Sub
		
		
		Public Function MVGetNumberFormat() As String
			Dim ReturnValue As String = "2"
			Dim ReturnString As String = ""
			Try
				Dim OEMKey As String = microvellum.common.microvellumregistry.clsregistry.microvellumregistryroot
				Dim StandardKey As String = microvellum.common.microvellumregistry.clsregistry.microvellumregistryroot
				Dim RootKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(OEMKey, False)
				Dim AppKey As Microsoft.Win32.RegistryKey = Nothing
				Dim ConfigKey As Microsoft.Win32.RegistryKey = Nothing
				If RootKey Is Nothing Then
					RootKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(StandardKey, False)
				End If
				If RootKey Is Nothing Then
					ReturnValue = "2"
				Else
					AppKey = RootKey.OpenSubKey("ApplicationSettings", False)
					If AppKey Is Nothing Then
						ReturnValue = "2"
					Else
						Dim LastConfig As String = AppKey.GetValue("LastConfig", "").ToString
						If String.IsNullOrEmpty(LastConfig) Then
							ReturnValue = "2"
						Else
							ConfigKey = RootKey.OpenSubKey("Configurations\" &amp; LastConfig, False)
							If ConfigKey Is Nothing Then
								ReturnValue = "2"
							Else
								ReturnValue = ConfigKey.GetValue("NumberFormat", "2").ToString
								ConfigKey.Close()
								AppKey.Close()
								RootKey.Close()
							End If
						End If
					End If
				End If
			Catch ex As Exception
				'do nothing
			End Try
			
			Select Case ReturnValue
				Case "1"
					ReturnString = "decimals"
				Case "2"
					ReturnString = "fractions"
			End Select
			' Return ReturnValue
			Return ReturnString
		End Function
		

		Public Function Fraction(sngWhole As Single) As String
			Dim intFront As Integer
			dim intNumer as integer
			Dim intDivis As Integer
			Dim intNegative As Integer
			Dim intPrecision As Integer = 32
			' Fractional precision, set to 16, 32, or 64

			If (sngWhole &lt; 0) Then
				intNegative = -1
			Else
				intNegative = 1
			End If
			If (sngWhole = Microsoft.VisualBasic.Int(sngWhole)) Then
				Return sngWhole
				Exit Function
			End If
			sngWhole = sngWhole * intNegative
			intFront = Microsoft.VisualBasic.Int(sngWhole)
			intNumer = System.Math.Round((sngWhole - intFront)*intPrecision)
			intFront = intFront * intNegative
			intDivis = intPrecision
			If (intNumer = 0) Then
				Return intFront
				Exit Function
			End If
			If (intNumer = intDivis) Then
				Return intFront + intNegative
				Exit Function
			End If
			While ((Microsoft.VisualBasic.Int(intNumer/2) = (intNumer/2)) and intDivis &gt; 2)
				intNumer = intNumer / 2
				intDivis = intDivis / 2
			End While
			If (intFront &lt;&gt; 0) Then
				Return intFront &amp; "-" &amp; intNumer &amp; "/" &amp; intDivis
			Else
				Return (intNumer * intNegative) &amp; "/" &amp; intDivis
			End If
		End Function
		
		
		Public Function MVGetUnitType() As String
			' Function to return units of measurement registry value or string

			Dim Key As String = Microvellum.Common.MicrovellumRegistry.clsRegistry.MicrovellumRegistryRoot
			Dim UnitTypeValue As String = ""
			Dim UnitTypeString As String = ""

			Try
				Dim RootKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(Key, False)
				Dim AppKey As Microsoft.Win32.RegistryKey = Nothing
				Dim ConfigKey As Microsoft.Win32.RegistryKey = Nothing

				If RootKey Is Nothing Then
					UnitTypeValue = "1"
				Else
					AppKey = RootKey.OpenSubKey("ApplicationSettings", False)
					If AppKey Is Nothing Then
						UnitTypeValue = "1"
					Else
						Dim LastConfig As String = AppKey.GetValue("LastConfig", "").ToString
						If String.IsNullOrEmpty(LastConfig) Then
							UnitTypeValue = "1"
						Else
							ConfigKey = RootKey.OpenSubKey("Configurations\" &amp; LastConfig, False)
							If ConfigKey Is Nothing Then
								UnitTypeValue = "1"
							Else
								UnitTypeValue = ConfigKey.GetValue("Units", "1").ToString
								ConfigKey.Close()
								AppKey.Close()
								RootKey.Close()
							End If
						End If
					End If
				End If
			Catch ex As Exception
				' do nothing
			End Try

			Select Case UnitTypeValue
				Case "0"
					UnitTypeString = "metric"
				Case "1"
					UnitTypeString = "imperial"
			End Select
			' Return UnitTypeValue
			Return UnitTypeString
		End Function 
		
		
		Public Function MVGetConvertToMetric() As String
			' Function to return whether registry value is set to Convert To Metric at processing

			Dim Key As String = Microvellum.Common.MicrovellumRegistry.clsRegistry.MicrovellumRegistryRoot
			Dim ConvertMetricValue As String = ""
			Dim ConvertMetricString As String = ""

			Try
				Dim RootKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(Key, False)
				Dim AppKey As Microsoft.Win32.RegistryKey = Nothing
				Dim ConfigKey As Microsoft.Win32.RegistryKey = Nothing

				If RootKey Is Nothing Then
					ConvertMetricValue = "0"
				Else
					AppKey = RootKey.OpenSubKey("ApplicationSettings", False)
					If AppKey Is Nothing Then
						ConvertMetricValue = "0"
					Else
						Dim LastConfig As String = AppKey.GetValue("LastConfig", "").ToString
						If String.IsNullOrEmpty(LastConfig) Then
							ConvertMetricValue = "0"
						Else
							ConfigKey = RootKey.OpenSubKey("Configurations\" &amp; LastConfig, False)
							If ConfigKey Is Nothing Then
								ConvertMetricValue = "0"
							Else
								ConvertMetricValue = ConfigKey.GetValue("ConvertToMetric", "0").ToString
								ConfigKey.Close()
								AppKey.Close()
								RootKey.Close()
							End If
						End If
					End If
				End If
			Catch ex As Exception
				' do nothing
			End Try

			Select Case ConvertMetricValue
				Case "0"
					ConvertMetricString = "no"
				Case "1"
					ConvertMetricString = "yes"
			End Select
			' Return ConvertMetricValue
			Return ConvertMetricString
		End Function 
		
		
		Public Function MVValueFormat(ByVal decInputValue As Decimal) As String
			' Function to format a value based on three registry settings: MVGetUnitType; MVGetNumberFormat; MVGetConvertToMetric

			Dim MVUnitType As String = MVGetUnitType()
			Dim MVNumberFormat As String = MVGetNumberFormat()
			Dim MVConvertMetric As String = MVGetConvertToMetric()

			Try
				If MVUnitType = "metric" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "no" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "metric" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "no" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "metric" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "metric" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "no" Then
					Return (decInputValue.ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "no" Then
					Return (Fraction(decInputValue).ToString)
				Else
					Return "Value cannot be formatted. Please verify registry settings and database values."
				End If
			Catch ex As Exception
				' Do nothing
				'				MessageBox.Show(ex.Message &amp; vbCrLf &amp; vbCrLf &amp; ex.StackTrace,
				'					ex.GetType.ToString)
				Return "-"
			End Try
		End Function
		
		
		Public Function MVThicknessFormat(ByVal decInputValue As Decimal) As String
			' Function to format a value based on three registry settings: MVGetUnitType; MVGetNumberFormat; MVGetConvertToMetric

			Dim MVUnitType As String = MVGetUnitType()
			Dim MVNumberFormat As String = MVGetNumberFormat()
			Dim MVConvertMetric As String = MVGetConvertToMetric()

			Try
				If MVUnitType = "metric" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "no" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "metric" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "no" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "metric" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "metric" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "yes" Then
					Return (Math.Round(decInputValue, 1, MidpointRounding.AwayFromZero).ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "decimals" AndAlso MVConvertMetric = "no" Then
					Return (decInputValue.ToString)
				ElseIf MVUnitType = "imperial" AndAlso MVNumberFormat = "fractions" AndAlso MVConvertMetric = "no" Then
					Return (Fraction(decInputValue).ToString)
				Else
					Return "Value cannot be formatted. Please verify registry settings and database values."
				End If
			Catch ex As Exception
				' Do nothing
				'				MessageBox.Show(ex.Message &amp; vbCrLf &amp; vbCrLf &amp; ex.StackTrace,
				'					ex.GetType.ToString)
				Return "-"
			End Try
		End Function
		
		
		Public Function MVInchesToFeetInches(decInputData As Decimal) As String
			' Function to convert inches to feet-inches

			' Const cDecimalConvertFactor As Decimal = 1.2
			Const cFeetDivisor As Integer = 12

			Dim decInputVal As Decimal = 0
			Dim strOutputVal As String = ""
			Dim decFeetInches As Decimal = 0
			Dim intFeet As Int32 = 0
			Dim intInches As Int32 = 0

			Try
				Decimal.TryParse(decInputData, decInputVal)
			Catch ex As Exception
				MessageBox.Show("Enter number of inches as a decimal value.")
			End Try

			intFeet = Math.Floor(decInputVal / cFeetDivisor)
			intInches = Math.Round(decInputVal Mod cFeetDivisor)
			strOutputVal = intFeet &amp; "' " &amp; intInches &amp; """"

			Return strOutputVal
		End Function
		
		
		Public Function MVModifiedScrapName(strComments As String, strMaterial As String) As String
			' Stimulsoft Function that parses the PlacedSheets.Comments data for modified scrap material name (d.m.)

			Dim intIndexDelimiter As Int32 = 0
			Dim strCommentsMat As String = String.Empty

			If strComments.Length &gt; 0 Then
				strComments = strComments.Trim
				If strComments.StartsWith("|") Then
					strComments = strComments.Remove(0, 1)
				End If

				If strComments.IndexOf("|") &gt; 0 Then
					intIndexDelimiter = strComments.IndexOf("|") + 1
					strCommentsMat = strComments.Substring(0, intIndexDelimiter - 1)
				Else
					strCommentsMat = strComments
				End If

				Return strCommentsMat
			Else
				Return strMaterial
			End If
		End Function
		
	
		Public Function MVLocationName(strComments As String) As String
			' Stimulsoft Function that parses the PlacedSheets.Comments data for (bin) location (d.m.)

			Dim intIndexDelimiter As Int32 = 0
			Dim strCommentsBin As String = String.Empty

			If strComments.Length &gt; 0 Then
				strComments = strComments.Trim
				If strComments.EndsWith("|") Then
					strComments = strComments.Remove(strComments.Length - 1, 1)
				End If

				If strComments.IndexOf("|") &gt; 0 Then
					intIndexDelimiter = strComments.IndexOf("|") + 1
					strCommentsBin = strComments.Substring(intIndexDelimiter)
				Else
					strCommentsBin = strComments
				End If

				Return strCommentsBin
			Else
				Return "no location data entered..."
			End If
		End Function	
		
		
        #Region "StiReport Designer generated code - do not modify"
		#End Region 'StiReport Designer generated code - do not modify
    End Class
End Namespace
</Script>
  <ScriptLanguage>VB</ScriptLanguage>
  <Styles isList="true" count="0" />
</StiSerializer> 