How to dynamically create a page and print in WPF?
-
Saturday, May 12, 2012 12:40 PM
I must create a page. There would be some texts and a table in the center.
Which way i must use? I dont know anything about reporting? But first question is "Is it reporting?". Crystal report? PrintDocumnet?Create Excel file?
I am really confused.
Ferhad Jabiyev
All Replies
-
Saturday, May 12, 2012 5:58 PM
Try FlowDocument.
http://msdn.microsoft.com/en-us/library/aa970909.aspx
http://msdn.microsoft.com/en-us/library/system.windows.documents.flowdocument.aspx
http://msdn.microsoft.com/en-us/magazine/cc163371.aspx
http://www.c-sharpcorner.com/uploadfile/mahesh/printing-in-wpf/Gaurav Khanna | Microsoft VB.NET MVP
-
Sunday, May 13, 2012 6:45 PMBut could i use Crystal Report? What is difference?
Ferhad Jabiyev
-
Sunday, May 13, 2012 7:06 PM
FlowDocument is a part of .NET Framework. Microsoft Visual Studio 2010 no longer includes Crystal Reports. But you can install it and can use that in WPF. Also crsytal report viewer tool is not available for WPF so you have to use ReportViewer tool of windows form. Following link should help you if you want to use crystal report in WPF.
http://www.codeproject.com/Tips/74499/Crystal-Report-in-WPF
Gaurav Khanna | Microsoft VB.NET MVP
- Marked As Answer by Ferhad Cebiyev Monday, May 14, 2012 4:37 AM
-
Monday, May 14, 2012 3:57 AM
Yes go with Flowdocument it's easy and printable.JP Cowboy Coders Unite!
- Marked As Answer by Ferhad Cebiyev Monday, May 14, 2012 4:37 AM
-
Monday, May 14, 2012 4:38 AM
@Mr. Javaman II and @Khanna Gaurav.
Very thanks for advice. I was really confused.
Have a nice day.
Ferhad Jabiyev

