|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Unable to retain section page numbering while removing the blank pages in MS word 201
Hi,
I am trying to generate a word document (Word 2010) which has multiple sections in it and page numbering starts with 1 for each section. My document has some blank pages in some of the sections and i am using the below code to remove the blank pages . When i delete the blank page , my section page numbering is not retained. page numbering starts from 1 to end of the document inspite of having different sections in it . PWordApp.Selection.EndKey(Unit:=Word.WdUnits.wdSto ry) PWordApp.Selection.TypeBackspace() PWordApp.Selection.Delete() Please let me know how can i retain page numbering at section level after deleting the blank pages in word 2010. |
#2
|
||||
|
||||
When deleting, most likely you are deleting one or more section breaks; this would explain why you lose page number restarts (which are section-level formatting).
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#3
|
|||
|
|||
|
#4
|
|||
|
|||
Unable to Retain Section Page numbering while removing blank pages in MS word 2010
Hi,
Can you please help me out if you have any code sample (.Net) which can show me how to delete blank pages without deleting section breaks. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page numbering with Section 1.1 Page 1 | sunalta | Word | 1 | 05-31-2012 02:48 PM |
Page Breaks, Headers, Blank Pages? | jnbwolf | Word | 2 | 12-21-2011 12:33 AM |
Page numbering starting on 2 after section break | pamm13 | Word | 1 | 06-22-2011 11:10 AM |
Unable to delete the last blank page. | anandjeevakan | Word | 0 | 12-11-2009 05:20 AM |
Section breaks, footers and page numbering | yeswab | Word | 0 | 03-19-2009 06:37 AM |