a question about printing or saving data in datagridview ?
-
hi all, i display some data from msaccess in datagridview according to some specific search criteria. and i put 3 buttons (Word, Excel, Print) under that datagridview. with 1st button, i want to save data displayed in a doc file. with 2nd in a xls file and the last one send to a printer. how can i do this ? ;) anyone gives some information how to achieve what i wanna do ? or suggests a document to read ? thanks in advance, bye.
-
hi all, i display some data from msaccess in datagridview according to some specific search criteria. and i put 3 buttons (Word, Excel, Print) under that datagridview. with 1st button, i want to save data displayed in a doc file. with 2nd in a xls file and the last one send to a printer. how can i do this ? ;) anyone gives some information how to achieve what i wanna do ? or suggests a document to read ? thanks in advance, bye.
i think u can use stream writer and streamreader for save data or read data from the files. data set is in connection with xml . u just must add a xml file to your project and work with it. for send data to printer u can use crystal report or print prieview control(i think).if you use control u must use drawing namespace(or e.graphics for ex.) to draw your form and measure the line is in your page and your no's of print pages.