or
<DockPanel x:Name="LayoutRoot"> <ContentControl x:Name="RibbonPanel" /> <ContentControl x:Name="StatusBarPanel" /> <ContentControl x:Name="ControlPanelRegion" /> <ContentControl x:Name="OutlookBarPanel" /> <Border BorderThickness="2" Padding="0" > <Grid > <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <ContentControl x:Name="MainRegion" /> <ContentControl x:Name="AnotherRegion" /> </Grid> </Border></DockPanel>((RadPdfViewer)sender).Print(new PrintSettings("Document 1", true));
GridViewColumn tagColumn = this.gridView.Columns["Tag"];IColumnFilterDescriptor tagFilter = tagColumn.ColumnFilterDescriptor;// Suspend the notifications to avoid multiple data engine updatestagFilter.SuspendNotifications(); tagFilter.DistinctFilter.Clear();foreach (var pair in myDictionary){ if (pair.Value.IsShown) { tagFilter.DistinctFilter.AddDistinctValue(pair.Key); }}// Resume the notifications to force the data engine to update the filter.tagFilter.ResumeNotifications();var filename = "C:\\temp\\test.pdf";var doc = new Telerik.Windows.Documents.Model.RadDocument();var stream = new FileStream(filename, FileMode.Create);var pdfExp = new Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider();pdfExp.Export(doc, stream);stream.Close();doc.SectionDefaultPageSize = Telerik.Windows.Documents.Model.PaperTypeConverter.ToSize(Telerik.Windows.Documents.Model.PaperTypes.A4);pdfExp.Export(doc, stream);stream.Close();<t:Paragraph FirstLineIndent="0" LeftIndent="0" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"><BR> <t:Paragraph.ParagraphSymbolPropertiesStyle><BR> <s:SpanProperties FontFamily="Arial" FontWeight="Bold" /><BR> </t:Paragraph.ParagraphSymbolPropertiesStyle><BR> <custom1:NamedPermissionRangeStart AnnotationID="11" InternalKey="CLINICALQUESTION" Name="TEMPLATE_FRAGMENT_TITLENAME_CLINICALQUESTION_1" Type="Header"><BR> <t:PermissionRangeInfo Name="EditorTemplateAdmin" Type="Individual" /><BR> </custom1:NamedPermissionRangeStart><BR> <t:Span FontFamily="Arial" FontWeight="Bold" Text="Fragestellung¬" /><BR> <custom1:NamedPermissionRangeEnd AnnotationID="11" /><BR> <custom1:NamedPermissionRangeStart AnnotationID="12" InternalKey="CLINICALQUESTION" Name="TEMPLATE_FRAGMENT_TEXTNAME_CLINICALQUESTION_1" Type="Text"><BR> <t:PermissionRangeInfo Name="ReportAuthor" Type="Group" /><BR> </custom1:NamedPermissionRangeStart><BR> <t:Span FontFamily="Arial" FontWeight="Bold" Text=" ¬" /><BR> <custom1:NamedPermissionRangeEnd AnnotationID="12" /><BR> </t:Paragraph>