-
November 26th, 2010, 11:35 PM
#1
print a Listview
Hello, I have a listview on a form, and I would like to print its content without saving it to file.
How can I embed it into a printpreviewcontrol before printing ?
Thank you
-
November 27th, 2010, 09:54 PM
#2
Re: print a Listview
In Vb what I do is use the same sql and reader code that populates the listview and use it to send data to Graphics.Drawstring instead. I would hope that approach is applicable to C#. Haven't tried that yet. My C# hasn't caught up to my VB but I'm hoping this approach will be the same. So take a look into adding a PrintDocument and a PrintPreviewDialog into the form and investigage on how to use the tandem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|