Solved

Pasting a picture from clipboard to word document in paste special format using vb

Posted on 2003-11-30
6
458 Views
Last Modified: 2012-06-21
i have copied a bmp file into the clip board and want to paste that special in a word document to reduce the size of the document. As such i am able to paste the bmp file. Iwant to use the pastespecial option in MS-Word in VB
cAN ANY ONE HELP ..................
0
Comment
Question by:srivat_ta_bits
  • 2
6 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 125 total points
ID: 9849870
?


Selection.PasteSpecial Link:=False, DataType:=wdPasteBitmap, Placement:= _
        wdFloatOverText, DisplayAsIcon:=False

0
 

Author Comment

by:srivat_ta_bits
ID: 9879859
Hey thanks man..
That was great use...
Infact i wanted to reduce the memory after pasting.. because i was able to paste it into document as bit map but the memory occupied was more.. so i had to word an image compression logic..
but now using datatype as wdpastebitmap the size of the document is reduced greatly...
And soon i will also come up with image compression logic...
thanku
srivats
0
 

Author Comment

by:srivat_ta_bits
ID: 10162836
Hey thanks man..
That was great use...
Infact i wanted to reduce the memory after pasting.. because i was able to paste it into document as bit map but the memory occupied was more.. so i had to word an image compression logic..
but now using datatype as wdpastebitmap the size of the document is reduced greatly...
And soon i will also come up with image compression logic...
thanku
srivats
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 10166622
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered EDDYKT
 
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

leonstryker
EE Cleanup Volunteer
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 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