TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Taiseer Hussein
NA
3
4.9k
How to restart list numbering in copy and paste when merging two or more word doc in single one Using C#
Jan 3 2012 11:34 AM
Hi,
I have a C# project to combine multiple word doc in single one. I was able to combine them successfully using copy & paste or
Selection.InsertFile
, however I'm having two issues
1. I wanted to keep the original format for each doc, therefore I'm using oWordApplication.Selection.PasteAndFormat(Microsoft.Office.Interop.Word. WdRecoveryType .wdFormatOriginalFormatting); which keeps the original formatting.
2. The second issue is the list numbering in which it continues from the previous inserted doc. I can use oWordApplication.Selection.PasteAndFormat(Microsoft.Office.Interop.Word. WdRecoveryType .wdListRestartNumbering), but in this case I can't use the wdFormatOriginalFormatting where I lose the original formating.
Is there a way I can use both (wdFormatOriginalFormatting and wdListRestartNumbering) in single paste, so I can keep the original formatting for each doc and rest the numbering from the beginning? Or is there a way to restart the numbering after I paste with original formatting.
Thanks
Reply
Answers (
2
)
What is the process for strong naming an assembly
Get list of all the controls in my usercontrol