Re: Read Picture Type?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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' wmf
already?

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 graphics
filters, for the file formats you mention and umpteen others. These
filters
are known as 'converters' for good reason: they convert to and from 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,
png,
bitmap, metafiles - i cant help it if you dont know that, and a
condescending attitude wont disguise ignorance - the google archives
will
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 you
dont
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, don't
have
a
type."

isn't true - they do have a 'type', which can be defined/written
within
m.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
picture
and
paste it back as .jpeg, .gif, png or bitmap (all have different
'type'
numbers)

This is functionality of the clipboard, not of Word.












.


Quantcast