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)
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)