printing - Print WPF ItemsControl Across Multiple Pages -
I have been hosted in ItemsCollection
a ScrollViewer
Enough enough to span multiple pages on I have been able to print a page using the PrintVisual (itemsControl)
yet, but I need to print the same control over many pages from what I have read. Can show the path in the right direction?
Thank you!
What you need to do is clipping
let you calculate the clip size and According to the size of your page, the required quantity of the parts must be clamped to the image of the control and those clip images will be kept in the list and sent to their prestost logic.
P> Process:
You must convert the view to a render-targeted blistmap with the expected encoding.
Then, using the Cropbeatmap, you can clip the bitmap image into the required dimension. Then, call those clips to a list & lt; Image & gt;
Keep After, repeat them using your printing logic and print them. If you want a sample I will try to provide I hope that is a very old post, it will be useful for anyone in the future.
Comments
Post a Comment