15,893,487 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Dave_6 (Top 2 by date)
Dave_6
24-Mar-11 15:56pm
View
Are you saying that the image format I selected is not relevant? When I put png data on the clipboard it is really bitmap data?
I do not put bitmap data on the clipboard. I put png data on the clipboard. And I want to put jpeg data on the clipboard. Once I have the png image data on the clipboard, I switch to Excel and select pastespecial. The only paste option is PNG. Bitmap is not an option.
No other image format is available to paste. However, I if paste the png image into Excel, then copy it from within Excel, the new pastespecial list shows many different image formats available to paste, including jpeg. So I know it is possible to paste jpeg data from the clipboard, just as it was possible to paste png data from the clipboard. If I use Paint instead of Excel the png image is not available to paste. Paint only accepts bitmap data.
Dave_6
24-Mar-11 11:31am
View
Thank for responding. I'd already read the article. Well done.
Perhaps I am having trouble understanding... I need to put a jpeg on the clipboard. SetImage will only put a bitmap on the clipboard. SetDataObject has many image format options. That's how I worked out getting the png format. However, the jpeg version of my image is less than half the size of the png. If I paste the image into Excel, then manually copy it, pastespecial will show many differnt image formats available, including jpeg. How can I get my image onto the clipboard as jpeg?