Re: Read Picture Type?
- From: "JethroUK©" <reply@xxxxxxxxx>
- Date: Mon, 29 May 2006 10:17:19 GMT
i'll take that as no, and carry on replacing every picture, in all the
documents indiscriminately
thanks
"Jezebel" <warcrimes@xxxxxxxxxxxxxx> wrote in message
news:#0jHb7ugGHA.4776@xxxxxxxxxxxxxxxxxxxxxxx
Yes I CAN see what the code does. It uses the wdPasteMetafilePicturedo
constant to specify which of the various data formats in the clipboard
should be used as the source for the paste operation. This has nothing to
with the format of the graphic once it has been pasted into the document.to
The Clipboard is an application in its own right. When you copy something
the clipboard, the copying application chooses which data formats it willwhich
put into the clipboard (as a service to the - at that point unknown -
pasting application). The options listed when you use Edit > PasteSpecial
are the formats actually held by the clipboard at the time, that Word can
use.
The argument to the PasteSpecial method -- wdPasteMetafilePicture in this
case -- is not specfying what format should be inserted into Word, but
of the source formats within the clipboard object to use. The result ofthe
paste is a conversion of that source to Word's internal format -- WMF inall
cases if the source is a graphic format.VB
You might get a better understanding of what's going on by looking at the
documentation for the Clipboard object. If you don't have VB, Googleshould
find it for you.wmf
"JethroUK©" <reply@xxxxxxxxx> wrote in message
news:Oeteg.1873$xH1.168@xxxxxxxxxxxxxxxxxxxxxxx
can you see what the code does?
can you see it replaces any/all picture 'types' with wmf?
can you see it would be wise - to only replace the ones that are 'not'
graphicsalready?
can you see it nessessary to be able to read the existing type to
differentiate?
if you are saying it can't be done - just say so - m.s. word picture
typing
is only a very, very small part of my life
"Jezebel" <warcrimes@xxxxxxxxxxxxxx> wrote in message
news:uFlxWXsgGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
You're resolutely missing the point. Word supports any number of
youfilters, for the file formats you mention and umpteen others. Thesefilters
are known as 'converters' for good reason: they convert to and frompng,
Word's
internal graphic format. The internal format is WMF.
"JethroUK©" <reply@xxxxxxxxx> wrote in message
news:3bseg.3785$002.983@xxxxxxxxxxxxxxxxxxxxxxx
m.s. word is compatable with many different picture types. jpeg, gif,
willbitmap, metafiles - i cant help it if you dont know that, and a
condescending attitude wont disguise ignorance - the google archives
carve this thread in stone for years - so the wiser approach would be
to
admit you've waded out of your depth & leave the thread with your
credibility intact
f.y.i. i have already written the code that works perfectly:
Sub CompressPictures()
Dim x%
With ActiveDocument.InlineShapes
For x% = 1 To .Count
.Item(x%).Select
Selection.Cut
Selection.PasteSpecial , , wdInLine, ,
wdPasteMetafilePicture
Next
End With
End Sub
i merely would prefer to read a picture type before i write it - if
don'tdont
know - leave it for someone who does - k
"Jezebel" <warcrimes@xxxxxxxxxxxxxx> wrote in message
news:#ti1GiqgGHA.3572@xxxxxxxxxxxxxxxxxxxxxxx
Wishful thinking is not a good basis for writing code. As you've
demonstrated already, it doesn't work.
"JethroUK©" <reply@xxxxxxxxx> wrote in message
news:yUleg.435$s4.399@xxxxxxxxxxxxxxxxxxxxxxx
so your statement "Graphics, once inserted into the document,
withinahave
type."
isn't true - they do have a 'type', which can be defined/written
picturem.s.
word - i just cant find a way to read the type before writing it -
hence
my
problem & my post
"Jezebel" <warcrimes@xxxxxxxxxxxxxx> wrote in message
news:eX3BI$kgGHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
"JethroUK©" <reply@xxxxxxxxx> wrote in message
news:MUdeg.3367$Z7.184@xxxxxxxxxxxxxxxxxxxxxxx
if all graphics are windows metafiles - how come i can cut a
'type'and
paste it back as .jpeg, .gif, png or bitmap (all have different
numbers)
This is functionality of the clipboard, not of Word.
.
- References:
- Read Picture Type?
- From: JethroUK©
- Re: Read Picture Type?
- From: Jezebel
- Re: Read Picture Type?
- From: JethroUK©
- Re: Read Picture Type?
- From: Jezebel
- Re: Read Picture Type?
- From: JethroUK©
- Re: Read Picture Type?
- From: Jezebel
- Re: Read Picture Type?
- From: JethroUK©
- Re: Read Picture Type?
- From: Jezebel
- Re: Read Picture Type?
- From: JethroUK©
- Re: Read Picture Type?
- From: Jezebel
- Read Picture Type?
- Prev by Date: Re: Read Picture Type?
- Next by Date: Re: Text boxes keep moving and dissappearing
- Previous by thread: Re: Read Picture Type?
- Next by thread: Help ! Only hyperlink shown when copy picture from web
- Index(es):