Solved

Print in WPF

Posted on 2011-09-21
1
252 Views
Last Modified: 2012-06-27
How can I can print multiple (selected controls) in a paper in WPF? This print only one control.

Dim printDlg As New PrintDialog()
printDlg.PrintVisual(grid1, "Grid Printing.")

http://www.vbdotnetheaven.com/UploadFile/dbeniwal321/1885/
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 125 total points
ID: 36576140
Try adding all the controls, that you want to print, to a container control such as flowdocument and then print that container

http://stackoverflow.com/questions/205112/printing-a-collection-in-wpf
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now