Other then the generally bad mojo of using a word come object on a web-site/server (even Microsoft says this is a bad and unsupported idea).  When I was trying to do it last year, I found CF had a very hard time nesting object layers.  An object variable could only access it's immediate methods and properties, not the methods and properties of it's children.  I need to create another variable to hold each child object/collection I wanted to work on.


I also had a lot of trouble using word com constants such as wdPageBreak.  I had to find a resource (or use trial and error) to get the actual integer value associated with the constant.


The first thing I would try is Selection.InsertBreak.Type = 1 <!---- or whatever value wdPageBreak stands for --->


Then you might need to try something like


SubSection = Selection.InsertBreak
SubSection.type = 1 or wdPageBreak

Hope that helps, I know after fighting for some two or three months to get a Word Com solution to work, we ended up doing a much simpler Rich Text (RFT) solution where we just had to create RFT markup in a string variable then save it as a file with an RFT extension.  Worked very well and we could do all the formatting we needed to at the time.

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-----Original Message-----
From: Taco Fleur [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 12:43 PM
To: CF-Talk
Subject: RE: Word Object

Dan,

I was thinking about a particular one to start with, i.e.
Selection.InsertBreak Type:=wdPageBreak
I have no problem creating any code with the word object in VB syntax, I do
have a problem converting the syntax to CF, which is still my open question:
Is it even possible to work with **every** method/property of the word
object in ColdFusion? If so, how to go about it.

Try running Selection.InsertBreak Type:=wdPageBreak in CF, see what happens,
its valid in VB

Anyone????

Taco Fleur
Blog  <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn

-----Original Message-----
From: Dan O'Keefe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 27 January 2004 6:29 AM
To: CF-Talk
Subject: Re: Word Object

Taco Fleur wrote:

> Dan,
>
>
> cheers for that, I have actually visited that website before my post,
> there
> are only 12 Word articles on there, none touch the subject of
> inserting page
> break as far as I can tell by looking at the subjects.
>
>
> Another question was
> Is it even possible to work with **every** method/property of the word
> object in ColdFusion?
>
Doesn't one of the articles on that site, or a link point to the DOM on
Microsoft's website. Theoretically, I do not see any reason why you
would be able to use other method/properties in addition to the ones the
example shows Do you have particular ones in mind?

Dan
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to