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
Gunti Dilip
NA
54
103.9k
How to delete a particular page in word doc using c# ?
Jul 29 2013 10:40 AM
Hi,
Could you please help me out to delete a particular page in word document using C#?
I tried it but it is deleting only even number's.
Suggest me if it is right way or not..
int[] a = {14,16};
for (int i = 0; i <= a.Length; i++)
{
object pageno= a[i];
objWordDoc.Application.Selection.GoTo(Word.WdGoToItem.wdGoToPage, Word.WdGoToDirection.wdGoToAbsolute, null, pageno);
objWordDoc.Application.Selection.Bookmarks[@"\Page"].Select();
objWordDoc.Application.Selection.Delete();
}
Thanks,
Dilip
Reply
Answers (
1
)
how to preview images before uploading
how to view pdf files using C# code