AutoScale pictures after pasting, or InlineShapes.Reset

  • Thread starter selim baþtürk
  • Start date
S

selim baþtürk

hi,
i store the rtf code of some pictures in my database, then i get them into
an IDataObject, then to clipboard and then paste them on a word document
Word sometimes re-scales the pictures (which is i don't want!!)
so i use the InlineShapes collection and call .Reset() method for all the
pictures, but for some of the pictures (which are close to their original
sizes) .Reset() method scales them to unexpected sizes other than their
original sizes. if i use .ScaleHeight or .ScaleWeight, it generates an error
saying that the new sizes of the shapes is either too big or small. here is
the question:
if i call the Reset() method twice, all pictures are scaled correctly in
office 2000, but this doesn't work in office 2003
1.how can i configure word not to scale the pasted pictures??
2.if i can't, how can i reset them to original sizes after pasting?
(InlineShape.Reset and InlineShape.Scalewidth,InlineShape.Scaleheight
doesn't work) :(
 
W

Word Heretic

G'day "selim baþtürk" <[email protected]>,

Almost impossible for either of these I'm afraid. You can use frames
to hard limit pix, but I hate frames. I'd be trying to ensure that all
your pix are of a consistent format, with res set to 72 dpi.


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


selim baþtürk reckoned:
 
W

Word Heretic

G'day macropod <<[email protected]>>,

I have seen this fail on numerous occasions - it is dependant on
filetype, insertion method, number of gfx copies held by word etc.


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)
 
Top