locked
need to save gridview as image RRS feed

  • Question

  • User616079471 posted

     Hi All,

    I need to save my gridview as an image(.jpeg or .png) file.Could any one please suggest how will it be achieved?

    Thanks in advance,

    Anuradha

    Monday, November 17, 2008 5:40 AM

All replies

  • User1913767972 posted

    There should be some custom controls (as I believe it is a lot of work to achieve this goal).

    Also I played with the WebBrowser control and was able to print an HTML page as image but not quite sure how would this work in web environment. You may be able to navigate to your site and then take a screenshot of it but this doesn't seem to be the right approach to me.

    However you may check my blog to see if this would work for you:

    http://donchevp.blogspot.com/2008/10/c-how-to-take-screenshot-of-internet.html

    I think you may ommit the COM imports and use the managed WebBrowser control but I am not quite sure how would this work in web.

    Monday, November 17, 2008 9:38 AM