10-10-2018 02:05 AM
I am customising the standard print templates delivered with the Geospatial Portal print service for a customer and haven't been able to achieve the customisations listed below.
I have read the article https://community.hexagongeospatial.com/t5/WebGIS-Tutorials/How-to-customize-printing-templates-used... which doesn't appear to cover what I need.
https://stackoverflow.com/questions/789222/having-hardcoded-text-with-a-binding-in-a-textblock
<TextBlock TextWrapping="Wrap"> <Run>The value</Run> <Run Text="{Binding Path=MyProperty1, Mode=OneWay}" FontWeight="Bold" /> <Run>was invalid. Please enter it with the format... </Run> <LineBreak/><LineBreak/> <Run>Here is another value in the program</Run> <Run Text="{Binding Path=MyProperty2, Mode=OneWay}" FontWeight="Bold" /> </TextBlock>
Thanks,
Colin
10-10-2018 05:26 AM - edited 10-10-2018 05:27 AM
Hi Colin,
<WrapPanel Orientation="Horizontal" Grid.Row="4" Grid.ColumnSpan="3" VerticalAlignment="Top" HorizontalAlignment="Left"> <TextBlock FontSize="10pt" Text="This plan is suitable for information only. Intergraph accepts no liability for any error whatsoever. Copyright © " /> <TextBlock FontSize="10pt" Text="{Binding Source={x:Static sys:DateTime.Now},StringFormat= 'yyyy'}"/> <TextBlock FontSize="10pt" Text=" Customer, OpenStreetMap contributors" /> </WrapPanel>