|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
WDFormatOriginalFormatting does not retain formatting when content pasted from RTF
I am trying to copy the content from RTF (includes Text and Tables) to Word 2010 document programatically and i find the format is getting lost after pasting to word 2010.
Option1 : pWrdDoc.Sections.Last.Range.PasteAndFormat.Word.Wd RecoveryType. WdFormatOriginalFormatting) Doesn't work. Option 2: pWrdDoc.Sections.Last.Range.PasteSpecial(, , , , WdPasteDataType.wdPasteRTF, ) Doesn't work. Can anyone help me out how to resolve this issue programatically. |
#2
|
|||
|
|||
Attached is the sample RTF document so that you can replicate the issue
while copying the content to word 2010 document programmatically using .net |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conditional Formatting over copied and pasted data | kb3264 | Excel | 6 | 07-11-2012 07:12 AM |
Rich Text Content Control - Allow User Formatting | keithacochrane | Word | 1 | 05-28-2012 05:06 PM |
Anybody know a macro that applies autocorrect to pasted content? | dennisk | Word VBA | 1 | 06-09-2011 12:26 AM |
How to retain italics when pasting from PDF? | WaltR | Word | 0 | 03-01-2011 04:01 PM |
Package for CD with links to Windows media player content and Flash Shockwave content | hectorh | PowerPoint | 4 | 10-15-2009 12:22 PM |