Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1775
Printing WPF application - Scroll bar issue
posted
Hi,
I am trying to print wpf application which contains a xamdatagrid. I am passing my content control which holds a xamdatagrid to my print engine.The print engine will use XpsSerializationManager to save my contentcontrol to a xpsdocument, which will then be printed using PrintDocument method of the PrintDialog class.
The above appraoch works fine when the vertical scroll bar is at the top position. When the scroll bar is moved from top to any other position application doesn't respond and the no of pages which get sent to the printer is exceptionally high.
I will not be able to use Infragistics reporting as my application contains a third party graphics as well and i will have to club both graphics component and grid component in printout. 
Please help to solve this issue.
 
Regards,
Sasikumar
  • 138253
    Offline posted

    Hello Sasikumar,

     

    Thank you for your post. I have been looking into it and I can suggest you use the classes Infragistics has for printing the XamDataGrid. You can see a sample showing how to use them in the Samples Browser under Reporting / Organization / xamDataGrid Reporting section. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.