Solved

Datagrid to Clipboard/Excel

Posted on 2002-04-24
5
330 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
Comment Utility
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
Comment Utility
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
Comment Utility
You could export the grid to a file and then load the file in Excel.
0
 

Author Comment

by:enoch100
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now