Click here to Skip to main content
15,920,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..
i am developing inventory management system in WPF.
i want user to view print preview and print the invoice.
i am using this code

http://www.eggheadcafe.com/tutorials/aspnet/9cbb4841-8677-49e9-a3a8-46031e699b2e/wpf-printing-and-print-pr.aspx

->XPS Document Printing


it gives me error

Error 1 :The type or namespace name 'Window' could not be found (are you missing a using directive or an assembly reference?)

Error 2 The type or namespace name 'FormData' could not be found (are you missing a using directive or an assembly reference?)

how to solve this?
is there any other method for print Preview?

thanks
Posted

1 solution

Yes to print document in WPF you need to use XPS document printing.

Did you read this :

http://msdn.microsoft.com/en-us/library/ms742418.aspx[^]
http://msdn.microsoft.com/en-us/library/aa969772.aspx[^]


I think this would help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900