Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2012, 11:24 PM
ramsgarla ramsgarla is offline WDFormatOriginalFormatting does not retain formatting when content pasted from RTF Windows 7 64bit WDFormatOriginalFormatting does not retain formatting when content pasted from RTF Office 2010 64bit
Novice
WDFormatOriginalFormatting does not retain formatting when content pasted from RTF
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 10-05-2012, 02:35 AM
ramsgarla ramsgarla is offline WDFormatOriginalFormatting does not retain formatting when content pasted from RTF Windows 7 64bit WDFormatOriginalFormatting does not retain formatting when content pasted from RTF Office 2010 64bit
Novice
WDFormatOriginalFormatting does not retain formatting when content pasted from RTF
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default

Attached is the sample RTF document so that you can replicate the issue
while copying the content to word 2010 document programmatically using .net
Attached Files
File Type: zip Sample Report.zip (13.1 KB, 9 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
WDFormatOriginalFormatting does not retain formatting when content pasted from RTF Conditional Formatting over copied and pasted data kb3264 Excel 6 07-11-2012 07:12 AM
WDFormatOriginalFormatting does not retain formatting when content pasted from RTF Rich Text Content Control - Allow User Formatting keithacochrane Word 1 05-28-2012 05:06 PM
WDFormatOriginalFormatting does not retain formatting when content pasted from RTF 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

Other Forums: Access Forums

All times are GMT -7. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft