Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

FlowDocumentReader Printing Current page instead of all the pages

$
0
0

In a Popup windpw I have used FlowDocumentReader to print the pages and all the contents are comming from database and bind inListView like this

<PopupGrid.Row="4"Grid.Column="1"PopupAnimation="Slide"Placement="RelativePoint"IsOpen="{Binding IsChecked, ElementName=ButtonSummary}"StaysOpen="False"AllowsTransparency="True"AllowDrop="False"><FlowDocumentReaderName="FlowDocumentScrollViewer1"><FlowDocument><BlockUIContainerBackground="#fafafafa"BorderThickness="2"BorderBrush="#0092e3"><ScrollViewerHeight="Auto"VerticalScrollBarVisibility="Auto"HorizontalScrollBarVisibility="Disabled"><StackPanel><LabelHorizontalAlignment="Center">Todays ! Sell Summary Report</Label><ScrollViewerHeight="Auto"VerticalScrollBarVisibility="Auto"HorizontalScrollBarVisibility="Disabled"><ListViewBackground="#f5e5aa"VerticalContentAlignment="Stretch"HorizontalContentAlignment="Stretch"HorizontalAlignment="Stretch"Name="SalesRptListView"ItemsSource="{Binding Path=ListOfProductSale,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay,IsAsync=True}"><ListView.View><GridView><GridViewColumnDisplayMemberBinding="{Binding ItemCode}"Header="TItems Code"/><GridViewColumnDisplayMemberBinding="{Binding NoSell}"Header="No.Sell"/><GridViewColumnDisplayMemberBinding="{Binding Amount}"Header="Amount"/></GridView></ListView.View></ListView></ScrollViewer><ButtonCommand="Print"Width="30"Name="ButtonPrintReport"CommandParameter="FlowDocumentScrollViewer1"><ImageSource="pack://application:,,,/SalesReport;component/Images\print_report.png"Stretch="Fill"/></Button></StackPanel></ScrollViewer></BlockUIContainer></FlowDocument></FlowDocumentReader></Popup>

It is comming properly no issue. But it prints only the current page not all the pages.



M.Sabyasachi


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>