paste rtf problem in word 2000

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

selim baþtürk

i have a rtf code,there is a picture and some text in it, and i want to put
it in the clipboard, then paste to my word document, the code section is
below :

object soruo=aPureRTFString;

IDataObject doo = new DataObject(DataFormats.Rtf,soruo);

Clipboard.SetDataObject(doo,false);

wa.Selection.Paste();

this works in office 2002(xp) and office 2003 without any error... but in
word 2000, it pastes the picture very very very small (i can hardly see it)

i think word 2000 tries to auto-scale the picture, how can i disable that
feature?

the InlineShape.Reset method for the picture resets it OK in word 2000, but
this time in word 2002(xp) and 2003, picture becomes 7.62cm * 7.62 cm in
size?!?!? all the pictures come to the same size!?!? i use the office object
library 9.0 (for word 2000) for compatibility with office 2000... i was
guessing that it should work same way with 2002 and 2003 too? isn't it true?
what is the trick with this case?

in word 2003 when i select Reset from the picture toolbar it works OK

in word 2003 when i hold Ctrl button and double-click the picture (which
must be equivalent to reset picture, and really is in word 2000) picture
gets to 7.62cm*7.62cm sizes
 
J

Jonathan West

Hi Selim,

You might simply have to get the code to do different things depending on
which version of Word is running. You can check the current running version
of Word by checking the Application.Version property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top