Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

currently Save to .rtf using vbscript - Word object

91 views
Skip to first unread message

Brown, M

unread,
Apr 2, 2002, 6:37:17 PM4/2/02
to
Currently I am writing lines in sequence to a .rtf (that will be accessed
from Word).
I am doing:

Set fw = FSO.OpenTextFIle(LogPathAccount, 8, True)

fw.WriteLine "Employee Name.............:" & employee
fw.WriteToLog.WriteLine "Employee ID: & employee_id
fw.close

'Now what's the best way to jump to the next page, on the same file ?

Gurgen

unread,
Apr 2, 2002, 10:25:57 PM4/2/02
to
Your best bet is to post to microsoft.public.word.vba.general or view references at:

--
Gurgen Alaverdian
http://www.gurgensvbstuff.com

Ken Kolda

unread,
Apr 2, 2002, 10:49:30 PM4/2/02
to
If you're just writing plain text out to a file as you show, then what
you're creating is not an RTF file (even if you give it a ".rtf" extension).
RTF is a markup language similar in concept to but very different in
structure from HTML. If you create a real RTF document with all the
necessary markup, then you can add a page break by using the appropriate RTF
control code (I think it's \page). You can find Microsoft's specification
for RTF at

http://msdn.microsoft.com/library/?url=/library/en-us/dnrtfspec/html/rtfspec
.asp?frame=true

Ken

Brown, M <marlon...@hotmail.com> wrote in message
news:#RTFPDr2BHA.2216@tkmsftngp02...

0 new messages