Print Template not Valid
Hopefully someone can help me with this.
I have created a simple print template using the Report Designer, using the Geocortex Essentials controls, and am getting an error when trying to add a print template to my Essentials Site. I have copied the .rpx file out under my {SiteUri}/Viewers/silverlighttestsite/ directory, started the wizard, entered a name for the print template, but when I try to enter the location of the report for this directory with the mapTemplate.rpx appended to the end I get an error:
"The Location is not a valid print template. Please ensure that the template is a valid 'rpx' file and that all subreport references are correct"
I can download one of the sample templates from your code gallery copy it to the same location and add it just fine. I have not altered the XML, only used the designer to place and adjust the controls added to the template. Here is the XML for my print template:
<?xml version="1.0" encoding="UTF-8"?>
<ActiveReportsLayout Version="3.1" PrintWidth="15210" DocumentName="ARNet Document" ScriptLang="C#" MasterReport="0">
<StyleSheet>
<Style Name="Normal" Value="font-family: Arial; font-style: normal; text-decoration: none; font-weight: normal; font-size: 10pt; color: Black; ddo-char-set: 186; " />
<Style Name="Heading1" Value="font-size: 16pt; font-weight: bold; " />
<Style Name="Heading2" Value="font-family: Times New Roman; font-size: 14pt; font-weight: bold; font-style: italic; " />
<Style Name="Heading3" Value="font-size: 13pt; font-weight: bold; " />
</StyleSheet>
<Sections>
<Section Type="PageHeader" Name="PageHeader1" Height="464" BackColor="16777215">
<Control Type="AR.Label" Name="Label1" Left="0" Top="0" Width="4320" Height="540" Caption="Ada County Assessor" Style="font-size: 20.25pt; " />
</Section>
<Section Type="Detail" Name="Detail1" Height="10814" BackColor="16777215">
<Control Type="AR.Image" Name="MainMap" DataField="_MainMap" Left="0" Top="0" Width="12510" Height="10440" LineColor="16777215" LineWeight="0" HyperLink="" SizeMode="1" />
<Control Type="AR.Image" Name="OverviewMap" DataField="_OverviewMap" Left="12510" Top="0" Width="2610" Height="2160" LineColor="16777215" LineWeight="0" HyperLink="" SizeMode="1" />
<Control Type="AR.Image" Name="NorthArrow" DataField="_NorthArrow" Left="11790" Top="0" Width="720" Height="720" LineColor="16777215" LineWeight="0" HyperLink="" SizeMode="1" />
<Control Type="AR.Subreport" Name="_Legend" Left="12510" Top="2160" Width="2610" Height="7830" CanGrow="0" CanShrink="0" ReportName="_Legend" />
<Control Type="AR.Image" Name="ScaleBar" DataField="_ScaleBar" Left="0" Top="9720" Width="2880" Height="216" BackColor="0" BackStyle="1" LineColor="16777215" LineWeight="0" HyperLink="" />
<Control Type="AR.Field" Name="ScaleBarDistance" DataField="_ScaleBarDistance" Left="810" Top="9990" Width="2070" Height="270" Text="-Distance-" OutputFormat="#,##0.00" />
<Control Type="AR.Field" Name="MapScale" DataField="_MapScale" Left="10260" Top="9900" Width="1440" Height="285" Text="-MapScale-" OutputFormat="#,##0.00" />
<Control Type="AR.Field" Name="DateTime" DataField="_DateTime" Left="13050" Top="9990" Width="2070" Height="270" Text="-DateTime-" OutputFormat="M/d/yyyy" />
</Section>
<Section Type="PageFooter" Name="PageFooter1" Height="0" BackColor="16777215" />
</Sections>
<ReportComponentTray />
<PageSettings LeftMargin="720" RightMargin="720" TopMargin="720" BottomMargin="720" Orientation="2" />
<Parameters />
</ActiveReportsLayout>
-
Nevermind, I figured it out, I needed to create a subreport for the Legend control.
0 -
Hi Mike,
might I suggest that you place your print templates in a common folder off of {RootPath} (or at least under {SiteUri}) rather than in a viewer's folder? The reason I make this suggestion is that normally a print template will be used amongst all the sites, so placing down in one site under one viewer can potentially cause problems if you remove the viewer (or the site.)
regards,
Edmond
0
Please sign in to leave a comment.
Comments
2 comments