I'm using the office add-in to create a word document based on a template
file.

In some areas of the document I need to insert a LineBreak (Not a new
paragraph) into the document. So far I can't figure out how to do this.

Can anyone help?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche

Re: Am I Going Crazy? by Peter

Peter
Mon Nov 08 11:53:36 CST 2004

Hi,

I think you should use WordApp.Selection.TypeParagraph();

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
news:XKCdnQ0Nc_E5iRPcRVn-hw@athenet.net...
> I'm using the office add-in to create a word document based on a template
> file.
>
> In some areas of the document I need to insert a LineBreak (Not a new
> paragraph) into the document. So far I can't figure out how to do this.
>
> Can anyone help?
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
>



Re: Am I Going Crazy? by S

S
Tue Nov 09 08:11:15 CST 2004

Peter,

Thanks!

I'll give that a try.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter Jausovec" <peter@jausovec.net> wrote in message
news:OoW0bvbxEHA.3624@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I think you should use WordApp.Selection.TypeParagraph();
>
> Regards,
> Peter Jausovec
> (http://blog.jausovec.net)
>
> "S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
> news:XKCdnQ0Nc_E5iRPcRVn-hw@athenet.net...
>> I'm using the office add-in to create a word document based on a template
>> file.
>>
>> In some areas of the document I need to insert a LineBreak (Not a new
>> paragraph) into the document. So far I can't figure out how to do this.
>>
>> Can anyone help?
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>>
>
>



Re: Am I Going Crazy? by S

S
Tue Nov 09 16:16:26 CST 2004

Peter,

Thanks again, but that's not it.

I want to insert the equivalent of a shift + enter in word because of the
way that special line feed reacts with a justified piece of text.

Selection.TypeParagraph(); inserts a regular paragraph. So I'm still
looking. If anyone out here knows how to insert shift + enter please let me
know.


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter Jausovec" <peter@jausovec.net> wrote in message
news:OoW0bvbxEHA.3624@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I think you should use WordApp.Selection.TypeParagraph();
>
> Regards,
> Peter Jausovec
> (http://blog.jausovec.net)
>
> "S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
> news:XKCdnQ0Nc_E5iRPcRVn-hw@athenet.net...
>> I'm using the office add-in to create a word document based on a template
>> file.
>>
>> In some areas of the document I need to insert a LineBreak (Not a new
>> paragraph) into the document. So far I can't figure out how to do this.
>>
>> Can anyone help?
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>>
>
>



Re: Am I Going Crazy? by S

S
Sat Nov 13 13:22:56 CST 2004

Well, I found the solution. If anyone else needs to insert a line break into
word using the office add-in here's how to do it:

ThisDocument.Application.Selection.InsertBreak(Word.WdBreakType.wdLineBreak)


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
news:XKCdnQ0Nc_E5iRPcRVn-hw@athenet.net...
> I'm using the office add-in to create a word document based on a template
> file.
>
> In some areas of the document I need to insert a LineBreak (Not a new
> paragraph) into the document. So far I can't figure out how to do this.
>
> Can anyone help?
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
>