It is necessary to print data from datagridview, which, in turn, receives data from the collection. How to implement? Has anyone encountered a similar situation? The way of forming a bitmap image will not work. In datagridview there will be 4 columns with data of type string.
2 answers
The answer was found on the site msdn. http://code.msdn.microsoft.com/CSWinFormPrintDataGridView-75864c45
|
A classic and correct approach would be to use any kind of report builder, but if a one-time need and a quick and simple approach is tedious, you can print out the control itself, well described on stackoverflow , and there are also examples on the code sample.
- Oh no. The method described there does not work correctly, you can check it yourself. But I already found a solution on the mdsn website. - Vasily Koshelev
|
e.Graphics
? For example, like this: simpleprogrammingexamples.blogspot.de/2009/01/c-printing.html - VladD