Printing what is displayed in the browser requires some javascript and what
you see is pretty much what you get.

This javascript will print out the current web form...

function printMe(){
        window.print();
}

If you just want to print out the grid, you can have a javascript function
that opens a form that just just contains the grid, print it out, and close
the form.

HTH,

Dean Fiala
-----------------------------
Very Practical Software, Inc.
http://www.vpsw.com/links.aspx





-----Original Message-----
From: geethnemani [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 09, 2004 12:07 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Printing a datagrid


Hi,

I have a WEBFORM with a datagrid and a print button. On click of the
button I would like to print the datagrid. There are few pointers in
MSDN regarding printing windowforms and printing datagrid in
windowsforms. But I am working with webforms. If anybody knows how
to work with this, please let me know. Any help would be really
appreciated.

Thanks,
Sirisha






Yahoo! Groups Links









------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to