954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Print Datagrid issue

Hello Expertzzz.

I need ur help urgently.I am trying to print datagrid in DIV tag.I am using following javascript funtion to print Datagrid in asp.net
function CallPrint(strid1) { var WinPrint; var prtContent = document.getElementById(strid1); var strOldOne=prtContent.innerHTML; var WinPrint = window.open(); //var WinPrint = window.open('','','left=0,top=0,width=500px,height=500px,toolbar=0,scrollbars=no,status=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); prtContent.innerHTML=strOldOne; }

And i am calling this function on button click.


But my problem is that it is not printing datagrid column.Datagrid contains 10 columns records while its printing only two columns records.This is coz page size is less that grid size.

Please help me asap....

Looking forward for ur positive reply....

Many Thanks

kaurr
Newbie Poster
1 post since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You