C# page break

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
I have seen the r-w property PageBreakBefore of the Paragrah object. The set
property has an int parameter but I can not find the exact value.
Also the InsertBreak method of the Range object with an object parameter
setted to WdBreakType.wdPageBreak does not work (obtain a COM error).
I'll very hopefully if I receive a little help.
Enjoy (also with mineral water)
 
Hi Louis
I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
[..]

Developer questions like these are (obviously) easily overlooked in this
newsgroup (flooded as it has become with rather off-topic queries :-)).
I suggest you take this one to any of the VBA related groups in the
microsoft.public.word.vba.- hierarchy. They know their Word Object Model
there ...

Greetings
Robert
 
Hi Louis
I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
[..]

Developer questions like these are (obviously) easily overlooked in this
newsgroup (flooded as it has become with rather off-topic queries :-)).
I suggest you take this one to any of the VBA related groups in the
microsoft.public.word.vba.- hierarchy. They know their Word Object Model
there ...

Greetings
Robert
 
Thanks.
I have got in the trouble yesterday.
I'll follow your suggestion

Robert M. Franz (RMF) said:
Hi Louis
I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
[..]

Developer questions like these are (obviously) easily overlooked in this
newsgroup (flooded as it has become with rather off-topic queries :-)).
I suggest you take this one to any of the VBA related groups in the
microsoft.public.word.vba.- hierarchy. They know their Word Object Model
there ...

Greetings
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
 
Thanks.
I have got in the trouble yesterday.
I'll follow your suggestion

Robert M. Franz (RMF) said:
Hi Louis
I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
[..]

Developer questions like these are (obviously) easily overlooked in this
newsgroup (flooded as it has become with rather off-topic queries :-)).
I suggest you take this one to any of the VBA related groups in the
microsoft.public.word.vba.- hierarchy. They know their Word Object Model
there ...

Greetings
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
 
Hi Louis,
I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
I have seen the r-w property PageBreakBefore of the Paragrah object. The set
property has an int parameter but I can not find the exact value.
Also the InsertBreak method of the Range object with an object parameter
setted to WdBreakType.wdPageBreak does not work (obtain a COM error).
The Word object model provides an InsertBreak method, for example

object oPageBreak = Word.WdBreakType.wdPageBreak;
rng.InsertBreak(ref oPageBreak);


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Hi Louis,
I'm trying to insert a page break in a document of Word 2003 Application
(Microsoft.Office.Interop.Word) using Visual Studio 2005 with C# as
programming language.
I have seen the r-w property PageBreakBefore of the Paragrah object. The set
property has an int parameter but I can not find the exact value.
Also the InsertBreak method of the Range object with an object parameter
setted to WdBreakType.wdPageBreak does not work (obtain a COM error).
The Word object model provides an InsertBreak method, for example

object oPageBreak = Word.WdBreakType.wdPageBreak;
rng.InsertBreak(ref oPageBreak);


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Back
Top