how to printout data stored in server-side?
-
Any idea on how we can code for printing out the data which resides in server-side?let say we have name, date and ID number in the database.so we to print these out on a sticker.(hardopy) mijan
-
Any idea on how we can code for printing out the data which resides in server-side?let say we have name, date and ID number in the database.so we to print these out on a sticker.(hardopy) mijan
What exactly is the problem? Is it the printing or the displaying? If you want to display the data on the screen just use a DataGrid and populate it using a DataReader and then you print it if you wish.
-
What exactly is the problem? Is it the printing or the displaying? If you want to display the data on the screen just use a DataGrid and populate it using a DataReader and then you print it if you wish.
-
it is actually for printing purpose. if i use datagrid to display and then the next thing is to print this stuff.So is it gonna use JavaScript as well? specifically how am I to print the datagrid? mijan
I think you can do it using "execCommand" with JavaScript. it should be something along the lines of 'execCommand("Print")', check the syntax in msdn. That means you need a page with the datagrid on it (you can remove all custom design for a printer friendly version) and then activate the command.
-
I think you can do it using "execCommand" with JavaScript. it should be something along the lines of 'execCommand("Print")', check the syntax in msdn. That means you need a page with the datagrid on it (you can remove all custom design for a printer friendly version) and then activate the command.