<?xml version="1.0" encoding="utf-8"?>
<Report Location="Local or Network Folders" Host="FINDITEZ-T460P" Path="C:\Users\ken\Documents\Test Cases\SSRS\Form Letter2.rdl">
	<Group Name="Report Information">
		<Property Name="Description"><![CDATA[Report Title: Form Letter
Report Author: George Peck
Report Comments: Form letter demonstrating several techniques used for text and formula manipulation
Converted By: Crystal Migration Services, support@crystalmigrater.com]]></Property>
	</Group>
	<Group Name="Data Sources">
		<Group Name="DataSource1">
			<Property Name="Name"><![CDATA[DataSource1]]></Property>
			<Property Name="Connection String"><![CDATA[DSN=Xtreme Sample Database 11.5;]]></Property>
			<Property Name="Data Provider"><![CDATA[ODBC]]></Property>
		</Group>
	</Group>
	<Group Name="Datasets">
		<Group Name="DataSet1">
			<Property Name="Name"><![CDATA[DataSet1]]></Property>
			<Group Name="Query">
				<Property Name="Data Source"><![CDATA[DataSource1]]></Property>
				<Property Name="CommandText"><![CDATA[
SELECT Customer.[Customer Name], Customer.[Contact First Name], Customer.[Contact Last Name], Customer.[Contact Title], Customer.Address1, Customer.[Contact Position], Customer.City, Customer.Region, Customer.[Postal Code], Customer.[Last Year's Sales], Customer.Address2, Customer.Country 
FROM   Customer Customer 
WHERE ((Customer.Country = 'USA') OR (Customer.Country = 'Japan') OR (Customer.Country = 'China') OR (Customer.Country = 'Canada') OR (Customer.Country = 'France') OR (Customer.Country = 'Italy') OR (Customer.Country = 'Australis'))
]]></Property>
				<Group Name="Parameters" />
			</Group>
			<Group Name="Fields">
				<Group Name="Customer_Name">
					<Property Name="Name"><![CDATA[Customer_Name]]></Property>
					<Property Name="Source"><![CDATA[[Customer Name]]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Contact_First_Name">
					<Property Name="Name"><![CDATA[Contact_First_Name]]></Property>
					<Property Name="Source"><![CDATA[[Contact First Name]]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Contact_Last_Name">
					<Property Name="Name"><![CDATA[Contact_Last_Name]]></Property>
					<Property Name="Source"><![CDATA[[Contact Last Name]]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Contact_Title">
					<Property Name="Name"><![CDATA[Contact_Title]]></Property>
					<Property Name="Source"><![CDATA[[Contact Title]]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Address1">
					<Property Name="Name"><![CDATA[Address1]]></Property>
					<Property Name="Source"><![CDATA[Address1]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Contact_Position">
					<Property Name="Name"><![CDATA[Contact_Position]]></Property>
					<Property Name="Source"><![CDATA[[Contact Position]]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="City">
					<Property Name="Name"><![CDATA[City]]></Property>
					<Property Name="Source"><![CDATA[City]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Region">
					<Property Name="Name"><![CDATA[Region]]></Property>
					<Property Name="Source"><![CDATA[Region]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Postal_Code">
					<Property Name="Name"><![CDATA[Postal_Code]]></Property>
					<Property Name="Source"><![CDATA[[Postal Code]]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Last_Year_s_Sales">
					<Property Name="Name"><![CDATA[Last_Year_s_Sales]]></Property>
					<Property Name="Source"><![CDATA[[Last Year's Sales]]]></Property>
					<Property Name="Data Type"><![CDATA[Decimal]]></Property>
				</Group>
				<Group Name="Address2">
					<Property Name="Name"><![CDATA[Address2]]></Property>
					<Property Name="Source"><![CDATA[Address2]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
				<Group Name="Country">
					<Property Name="Name"><![CDATA[Country]]></Property>
					<Property Name="Source"><![CDATA[Country]]></Property>
					<Property Name="Data Type"><![CDATA[String]]></Property>
				</Group>
			</Group>
		</Group>
	</Group>
	<Group Name="Embedded Images">
		<Group Name="Picture_913956714AE9BFC85EE1F1434D4FBA95">
			<Property Name="Name"><![CDATA[Picture_913956714AE9BFC85EE1F1434D4FBA95]]></Property>
			<Property Name="Type"><![CDATA[jpeg]]></Property>
		</Group>
	</Group>
	<Group Name="Custom Code"><![CDATA[
Public Function Sales_Goal (ByVal dbField9 As Decimal) As Decimal
        Dim Goal As Decimal

    Select Case dbField9
        Case 0 to 10000
            Goal = ((dbField9 * 1.2) + 25000)
        Case 10001 to 25000
            Goal = ((dbField9 * 1.15) + 25000)
        Case 25001 to 50000
            Goal = (dbField9 * 1.25)
        Case Else
            Goal = (dbField9 * 1.15)
    End Select
End Function

]]></Group>
	<Group Name="Body">
		<Group Name="Report Items">
			<Group Name="RectDetailSection1">
				<Property Name="Name"><![CDATA[RectDetailSection1]]></Property>
				<Property Name="Type"><![CDATA[Rectangle]]></Property>
			</Group>
			<Group Name="PrintDate1">
				<Property Name="Name"><![CDATA[PrintDate1]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=Format(Globals.ExecutionTime, "MMMM d, yyyy")]]></Property>
			</Group>
			<Group Name="Customer_Name">
				<Property Name="Name"><![CDATA[Customer_Name]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=Fields!Customer_Name.Value]]></Property>
			</Group>
			<Group Name="Address1">
				<Property Name="Name"><![CDATA[Address1]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=Fields!Address1.Value]]></Property>
			</Group>
			<Group Name="ContactName1_Contact_Name">
				<Property Name="Name"><![CDATA[ContactName1_Contact_Name]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=(((((Fields!Contact_Title.Value & " ") & Fields!Contact_First_Name.Value) & " ") & Fields!Contact_Last_Name.Value) & ", ") & Fields!Contact_Position.Value]]></Property>
			</Group>
			<Group Name="Picture1">
				<Property Name="Name"><![CDATA[Picture1]]></Property>
				<Property Name="Type"><![CDATA[Image]]></Property>
				<Property Name="Source Type"><![CDATA[Embedded Image Name]]></Property>
				<Property Name="Embedded Image Name"><![CDATA[Picture_913956714AE9BFC85EE1F1434D4FBA95]]></Property>
			</Group>
			<Group Name="RectDetailSection2">
				<Property Name="Name"><![CDATA[RectDetailSection2]]></Property>
				<Property Name="Type"><![CDATA[Rectangle]]></Property>
			</Group>
			<Group Name="Address2">
				<Property Name="Name"><![CDATA[Address2]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=Fields!Address2.Value]]></Property>
			</Group>
			<Group Name="RectDetailSection3">
				<Property Name="Name"><![CDATA[RectDetailSection3]]></Property>
				<Property Name="Type"><![CDATA[Rectangle]]></Property>
			</Group>
			<Group Name="CityStateZip1_City_State_Zip">
				<Property Name="Name"><![CDATA[CityStateZip1_City_State_Zip]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=(((Fields!City.Value & ", ") & Fields!Region.Value) & "  ") & Fields!Postal_Code.Value]]></Property>
			</Group>
			<Group Name="Salutation1_Salutation">
				<Property Name="Name"><![CDATA[Salutation1_Salutation]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=((("Dear " & Fields!Contact_Title.Value) & " ") & Fields!Contact_Last_Name.Value) & ","]]></Property>
			</Group>
			<Group Name="RectDetailSection6">
				<Property Name="Name"><![CDATA[RectDetailSection6]]></Property>
				<Property Name="Type"><![CDATA[Rectangle]]></Property>
			</Group>
			<Group Name="Text3">
				<Property Name="Name"><![CDATA[Text3]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=("Thanks for purchasing " & (Format (Fields!Last_Year_s_Sales.Value, "#,##0"))) & " in merchandise last year." We truly appreciate your business, and trust that you found the quality of XTREME products to meet your expectations in every way.

However, we are concerned that orders from =Fields!Customer_Name.Value didn't meet our coordinated goal of at least $25,000 last year.

We think that our products speak for themselves. And, we think when you look carefully at our line of high quality bicycles and accessories, you'll find that your customers will be happiest with XTREME products as well. So, as an incentive to increase sales of XTREME products in the coming year, we're doing two things:

FExtending =Fields!Customer_Name.Value a 15 percent discount on new orders between now and the end of the year.
FHolding a special gift with =IIF ((Right(Fields!Contact_Last_Name.Value, 1) = "s"), (((((Fields!Contact_Title.Value & " ") & Fields!Contact_First_Name.Value) & " ") & Fields!Contact_Last_Name.Value) & "'") , (((((Fields!Contact_Title.Value & " ") & Fields!Contact_First_Name.Value) & " ") & Fields!Contact_Last_Name.Value) & "'s")) name on it. As soon as sales this year exceed our agreed-upon goal of =Code.Sales_Goal (Fields!Last_Year_s_Sales.Value), we'll put this gift right in the mail to you!

Together, we can work harder this year to not only improve our business relationship, but to provide your customers with the most fun, state-of-the-art, and reliable products in the industry!]]></Property>
			</Group>
			<Group Name="RectDetailSection4">
				<Property Name="Name"><![CDATA[RectDetailSection4]]></Property>
				<Property Name="Type"><![CDATA[Rectangle]]></Property>
			</Group>
			<Group Name="Text4">
				<Property Name="Name"><![CDATA[Text4]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[=("Thanks for purchasing " & (Format (Fields!Last_Year_s_Sales.Value, "#,##0"))) & " in merchandise last year." We truly appreciate your business, and trust that you found the quality of XTREME products to meet your expectations in every way.

Not only did you exceed our common $25,000 goal for last year, but you helped "spread the word" on XTREME quality and value.

We think that our products speak for themselves. And, we're glad that =Fields!Customer_Name.Value recognizes this and passes the enthusiasm on to your customers. As thanks for your help in making last year the most successful in XTREME history, we're doing two things:

FExtending =Fields!Customer_Name.Value a 10 percent discount on new orders between now and the end of the year.
FPutting in the mail a special gift with =IIF ((Right(Fields!Contact_Last_Name.Value, 1) = "s"), (((((Fields!Contact_Title.Value & " ") & Fields!Contact_First_Name.Value) & " ") & Fields!Contact_Last_Name.Value) & "'") , (((((Fields!Contact_Title.Value & " ") & Fields!Contact_First_Name.Value) & " ") & Fields!Contact_Last_Name.Value) & "'s")) name on it. Look for it to arrive on your doorstep soon!

But, we're not resting here. We have aggressive goals for rolling out new, innovative products for the coming year. And, we are sharing our aggressive sales goals with our most successful dealers. We plan on working hard with you to attain sales of =Code.Sales_Goal (Fields!Last_Year_s_Sales.Value) during the coming year. Together, we can work harder this year to not only improve our business relationship, but to provide your customers with the most fun, state-of-the-art, and reliable products in the industry!]]></Property>
			</Group>
			<Group Name="RectDetailSection5">
				<Property Name="Name"><![CDATA[RectDetailSection5]]></Property>
				<Property Name="Type"><![CDATA[Rectangle]]></Property>
			</Group>
			<Group Name="Text5">
				<Property Name="Name"><![CDATA[Text5]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[Again, =Fields!Contact_First_Name.Value, thank you so much for your support and confidence in XTREME Mountain Bikes during the previous year. We're looking eagerly forward to continuing our great relationship into the future.

Sincerely,]]></Property>
			</Group>
			<Group Name="Text1">
				<Property Name="Name"><![CDATA[Text1]]></Property>
				<Property Name="Type"><![CDATA[Text Box]]></Property>
				<Property Name="Content"><![CDATA[Andrew Fuller
Vice President, Sales]]></Property>
			</Group>
		</Group>
		<Group Name="Data Regions">
			<Group Name="Tablix1">
				<Property Name="Name"><![CDATA[Tablix1]]></Property>
				<Property Name="Type"><![CDATA[Table]]></Property>
				<Group Name="Row Member 1">
					<Group Name="Details">
						<Property Name="Name"><![CDATA[Details]]></Property>
					</Group>
				</Group>
				<Group Name="Row Member 1" />
				<Group Name="Row Member 2" />
				<Group Name="Row Member 3" />
				<Property Name="Source Dataset"><![CDATA[DataSet1]]></Property>
			</Group>
		</Group>
	</Group>
</Report>