473,383 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Clipboard Question

Hi, Group

I need transfer a listView.Item's data control to Windows Clipboard for
retrive in MS-Excel or another program.

Some Idea , some code, may be WEB site which advisor will be wellcome.

Best Regard
Mario
Nov 16 '05 #1
4 4527
Mario,

This might be difficult depending on the type of data that you want to
place on the clipboard. If it is just a string, then you should be able to
place it on the clipboard no problem and have it pasted into Excel with no
problem.

However, other formats might be more difficult. What kind of data do
you want to place on the clipboard.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mario Reiley" <mr*****@cantv.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, Group

I need transfer a listView.Item's data control to Windows Clipboard for
retrive in MS-Excel or another program.

Some Idea , some code, may be WEB site which advisor will be wellcome.

Best Regard
Mario

Nov 16 '05 #2
George Shepherd's Windows Forms FAQ contains an entry entitled:

How do I use the CSV clipboard format supported by Excel?

Check it out at:
http://www.syncfusion.com/faq/winforms/search/899.asp

=============================================
Clay Burch, .NET MVP

Syncfusion, Inc.
visit http://www.syncfusion.com for .NET Essentials
"Mario Reiley" <mr*****@cantv.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, Group

I need transfer a listView.Item's data control to Windows Clipboard for
retrive in MS-Excel or another program.

Some Idea , some code, may be WEB site which advisor will be wellcome.

Best Regard
Mario

Nov 16 '05 #3
"ClayB [Syncfusion]" <cl***@syncfusion.com> wrote in
news:uD**************@TK2MSFTNGP11.phx.gbl...
George Shepherd's Windows Forms FAQ contains an entry entitled:

How do I use the CSV clipboard format supported by Excel?

Check it out at:
http://www.syncfusion.com/faq/winforms/search/899.asp


Note that you should not use ',' literally, but
CultureInfo.CurrentCulture.TextInfo.ListSeparator.
Different cultures, different commas.

Niki
Nov 16 '05 #4
"Mario Reiley" <mr*****@cantv.net> wrote in message news:<#v**************@tk2msftngp13.phx.gbl>...
Hi, Group

I need transfer a listView.Item's data control to Windows Clipboard for
retrive in MS-Excel or another program.

Some Idea , some code, may be WEB site which advisor will be wellcome.

Best Regard
Mario


1. Make a string with HTML-code: this code should describe the data in
an HTML-table
2. Copy the string to the clipboard in HTML-format. To do this, check
out this article I wrote:
http://realdevs.net/default.aspx?tab...34&parentid=11

If you copy it like this, you can paste it in Excel, Word, Outlook,
....

To create the HTML-code, you code should look like this:

System.Text.StringBuilder builder = new System.Text.StringBuilder();
builder.Append("<table>");
for each row in table // pseudo-code
{
builder.Append("<tr>");
for each column in row // pseudo-code
{
builder.Append("<td>");
builder.Append(value); // here comes the value of the specific
cell
builder.Append("</td>");
}
builder.Append("</tr>");
}
builder.Append("</table>");
string html = builder.ToString();
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: xyz | last post by:
I have a menu item to handle clipboard actions (cut, copy, paste). When I paste text that I copied from a Hungarian web page, the display looks normal on my RichTextBox, but the text retrieved from...
8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
5
by: TC | last post by:
Hello, Here is what I'm trying to do: -- Make sure both MS Excel and MS Word are running -- Create an Excel chart -- Save the Excel file -- Copy the Excel chart onto the clipboard using Ctrl...
2
by: Colleyville Alan | last post by:
I am using Access and have embedded the ActiveX control Formula One that came with Office 2000. (ver 3.04). I have created and formatted a spreadsheet and now I want to copy the info with...
0
by: Christopher | last post by:
Hello, First, I appologize for the length but I want to get all the facts down so as not to waste any time :) I'm trying to allow the user of my C# app to copy a DataGrid full of double values...
0
by: P N | last post by:
Hi all, I have question about copying picture from MS-Word into the Clipboard and then copy from the Clipboard into the bitmap variable within C#. The original image size is 2288 x 1712. If I...
4
by: Joshua Campbell | last post by:
I am working on an application that needs to parse out data that has been copied into the clipboard. My first questions are how can I detect if the clipboard is empty, and how can I empty the...
4
by: JohnR | last post by:
Hi all, I'm finally sick and tired of manually generating get/set properties for each private variable in a class so I'm trying to create a macro to do it. I'm stuck because I can't figure out...
0
by: James Russo | last post by:
Hello, I have an application which requires an image to be retrived from the clipboard. So, I am writting a quick C# windows application to take images from a webcam and store a single frame on...
7
by: Newbie | last post by:
How do I clear the clipboard in VB.NET 2003? TIA Newbie
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.