Jump to content
Xtreme .Net Talk

Printing a Dataset or contents of a Datagrid using PrintDialog [C#]


Recommended Posts

Posted

Okay - my program has a Datagrid that display the data the user was looking for - I need to give him a way to PRINT this data.

So I went looking around and found the "PrintDialog" thing in C#, I added one to my form (GUI, not in-code) - now the problem is I have no clue how to use it and I can't find much meaningful documentation - so I thought I would ask.

 

My goal - to allow the user to Print the contents of the Datagrid, either from the Datagrid itself OR from the corresponding DataSource (DataSet).

Or if anyone can propose a better/nicer/more efficient way of doing things.

Any help/hints would be appreciated. Thanks,

Posted

Okay - given that this generated 0 replies I assume I am going about this all wrong.... Then how would I PRINT something for the user?

 

Specifically, I have an SQL Database which I Query (into a DataSet) which is then set as the DataSource of a DataGrid. If the user needs I want to give them the option of PRINTING the data they see in the Datagrid.

 

Maybe the PrintDialog isn't the correct PRINTING tool?

If so then how do you PRINT something in C#?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...