<?xml version="1.0" encoding="utf-8"?>
<Document Processing="ManualDataBind" Destination="HttpResponse" OpenNewWindow = "True" OutputFilePath="DNN Users - Report 4.pdf">
	<DocumentHeader>
		<Author Visible="True">Bill Severance</Author>
		<DateCreated Visible = "True">9/21/2006</DateCreated>
		<Subject Visible = "True">Demo of PDF Generator</Subject>
		<Title Visible = "True">Report 4</Title>
	</DocumentHeader>
	<Reports>
		<Report PageSize="Letter" Orientation="Portrait" Margins="0.5in">
		    <Title>
		        <Text>DNN User Listing as of [Today]</Text>
		        <Style Font-Size="16pt" Font-Bold="True" ForeColor="Black" Font-Underline="True" HorizontalAlign="Center" SpacingAfter="0.25in"></Style>
		    </Title>
		    <Footer>
		        <Text IgnoreWhiteSpace="False">Printed: [Today] [Time]    [Subject]-[Title] Created By [Creator] on [DateCreated]</Text>
		        <Style Font-Size="6pt" Font-Name="Arial" HorizontalAlign="Right" />
		    </Footer>
			<PDFGrid ID="UserGrid" ShowHeader="True" ShowFooter="True" AutoGenerateColumns="False" CellPadding="0.05in" GridLines="None" >
			    <DataSource>
			         <ConnectionString Source="AppSettings">SiteSqlServer</ConnectionString>
			         <Command CommandType="Text">
			            SELECT DU.FirstName, R.PropertyValue 'Region', C.PropertyValue 'Country', M.CreateDate
						FROM DNN_Users DU, DNN_UserProfile R, DNN_UserProfile C, aspnet_Users U, aspnet_Membership M
						WHERE R.PropertyDefinitionID=28 AND R.USERID=DU.USERID AND
						C.PropertyDefinitionID=29 AND C.USERID=DU.UserID AND
						M.UserID = U.UserID AND
						U.UserName = DU.UserName
						ORDER BY DU.FirstName
					 </Command>
			         <BusinessObject>DemoUserInfo,PDFGeneratorDemo</BusinessObject>
			    </DataSource>
				<Style Width="80%" HorizontalAlign="Center" />
				<HeaderStyle Font-Name="Helvetica" Font-Bold="True" Font-Size="10pt" VerticalAlign="top" Border-Bottom="solid 1pt blue" />
				<ItemStyle Font-Name="Times" Font-Size="8pt" VerticalAlign="top" BackColor="Yellow" />
				<AlternatingItemStyle BackColor="LightYellow" />
				<FooterStyle Border-Top="solid 2pt Blue" Font-Size="6pt" Color="Red" HorizontalAlign="Right" Padding-Right="4px" />
				<PagerStyle BackColor="LightPink" HorizontalAlign="Right" Font-Size="6pt" Border-Top="solid 1pt blue" />
				<Columns>
				    <Column HeaderText="First Name" DataField="FirstName"/>
				    <Column HeaderText="Location"></Column>
				    <Column HeaderText="Date Created" DataField="CreateDate" DataFormatString="{0:MMM dd, yyyy}" />
				</Columns>
			</PDFGrid>
		</Report>
	</Reports>
</Document>