Hi Friends,
I have designed a small tool in WPF, which contains two forms. The first form performs a huge task in a button click event. Due to this process, the UI is non-responsive. To over come this issue, I have gone for Threading concept.
Problem: After performing this huge task, I am calling Form2, which contains a "DocumentViewer". Since, the Form2 is called from the Form1 through a thread, the Default Printing is not working.
Error Message: "The calling thread cannot access thi object because a different thread owns it"
Please suggest some workaround to avoid this issue.
Thanks in advance,
Regards,
Suresh Kumar.B