We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Export part of grid to clipboard to paste in email . .

Thread ID:





34417 Sep 8,2005 04:23 PM Oct 6,2005 12:58 PM Windows Forms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On September 8, 2005 04:23 PM

i have some users who want to take a row or column in the grid and paste it into an outlook email . . is there any built in functionality to do this. copy to the clipboard ? any other thoughts on accomplishing this task . . thks, ak

Administrator [Syncfusion]
Replied On September 8, 2005 06:40 PM

You can copy text to the clipboard by selecting the cells, and pressing ctl+C (unless you have ctl+C assigned to some kind of menu hot-key). That would be the only clipboard support available out of the box that you can use to paste into an email. You could code support for taking a bitmap snapshot and placing that directly on the clipboard, but you would be writing the code to do this. You can see how to get a bitmap in this sample. \Syncfusion\Essential Studio\\Windows\Grid.Windows\Samples\In Depth\PrintToFit

Administrator [Syncfusion]
Replied On October 6, 2005 11:41 AM

This bitmap solution seems like a good start. I have a few other questions.... I''d like to make this bitmap only for a range chosen by the user via selection of columns/rows. How do I do this? If the user selects a range, will the column headers be included, as in your example? Can we programatically create this bitmap based on a user''s request and paste it onto an email? If so, how? thx

Administrator [Syncfusion]
Replied On October 6, 2005 12:58 PM

Here is that sample tweaked so the show bitmap button displays the selected tange in the grid instead of the whole grid. It will also inculde the header row for every snapshot. http://www.syncfusion.com/Support/user/uploads/CS_567a01d4.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.