Solved

Datagrid to Clipboard/Excel

Posted on 2002-04-24
5
342 Views
Last Modified: 2013-11-13
I'm working at a client site where the client is displayed a datagrid. The client wants to be able to select the grid and copy/paste the contents into Excel. When I did this, excel pasted the contents as a picture. Is there some way code-wise to do this? Thanks!
0
Comment
Question by:enoch100
  • 3
  • 2
5 Comments
 

Author Comment

by:enoch100
ID: 6965794
To be more clear, I don't want Excel to paste it as a picture. I would like the cells and data to go into excel.... as cells and data.
0
 

Author Comment

by:enoch100
ID: 6965805
To be more clear, I don't want Excel to paste it as a picture. I would like the cells and data to go into excel.... as cells and data.
0
 
LVL 2

Accepted Solution

by:
GregJennings earned 150 total points
ID: 6965871
You could export the grid to a file and then load the file in Excel.
0
 

Author Comment

by:enoch100
ID: 6965898
That's a good idea... I could go thru the cols and put them into a comma-delimited file which they can open up later... Thanks! Didn't even occur to me. <sigh> damn M$ and their clipboard! :)
0
 
LVL 2

Expert Comment

by:GregJennings
ID: 6965935
You might check to see if there's an export function built in to the control.  I once used a grid control that had an export function and all I had to do was call that function with the output filename and it created the file for me.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question