Re: Interaction with office programs
From: Thane Hubbell (thaneh_at_softwaresimple.com)
Date: 12/25/03
- Next message: Thane Hubbell: "Re: CoBOL moved to OO"
- Previous message: JerryMouse: "Re: Date manipulation"
- In reply to: R. Hendriks: "Re: Interaction with office programs"
- Next in thread: R. Hendriks: "Re: Interaction with office programs"
- Reply: R. Hendriks: "Re: Interaction with office programs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Dec 2003 15:27:45 -0800
You don't use these chained object references with COBOL. You will
use the selection object to get a font object then separately adjust
the colorindex of that font object.
"R. Hendriks" <R.Hendriks_1@uvt.nl> wrote in message news:<bscjf4$71b$1@troll.uvt.nl>...
> Another reply, this is fairly simple, at least easier than I thought!
> Thanks!
> One more thing I was thinking of, here it goes:
>
> Do you know if it's possible to set a property of a child object? For
> instance I want to change the color of the text that I want to insert. I
> have created a selection-object by querying the Selection property of the
> document object. The selection object can be used to insert text and lots of
> other stuff. The Font object which is a child (or can be referenced to) of
> the Selection object has a property called Colorindex which sets the color
> of the text.
> In C++ you can set the font color by using: Selection.Font.ColorIndex =
> #rgb-code#
>
> My question now is: can you use the statement: invoke selection-object
> "SET-Font.ColorIndex" using ws-colorindex?
> Or do I have to create an object reference to the Font object, then change
> the colorindex property of that object, and then insert the text?
>
> I wish I could try it out myself, but Christmas it here, and my times is
> definitely required by someone else....which isn't necessarily a bad thing
> :-) Best wishes for Christmas and 2004 to everyone reading this!
>
> Rik
>
> "Peter E.C. Dashwood" <dashwood@enternet.co.nz> wrote in message
> news:3fe97c61_8@news.athenanews.com...
> >
> > "R. Hendriks" <R.Hendriks_1@uvt.nl> wrote in message
> > news:bsbqtt$vi8$1@troll.uvt.nl...
> > > LS,
> > >
> > > I'm looking for information, or a starting point, for interaction of
> > > Fujitsu's powercobol/netcobol with the various MS office programs. What
> > > method is best to use? COM/OLE/DDE/...? I want to directly interact with
> the
> > > various objects and properties of word/excel/access/outlook, so my idea
> is
> > > to use COM. Please provide any opinion/experience. Any link to a ms
> > > reference/docs is also greatly appreciated.
> > >
> > > Rik
> >
> > Fujitsu interfaces beautifully to COM in both PowerCOBOL and NetCOBOL.
> >
> > I have programs that do complex manipulation of the ACCESS Object Model
> > using COM (for example, to analyse the structure of a Database before
> > manipulating it...) and the same can be easily accomplished for Word (I
> have
> > done fairly trivial things like sending COBOL output direct to Word for
> > preview and printing.). I'm sure the same goes for Outlook, Excel, and
> most
> > MS software (which is COM Compliant almost by default...) The details of
> the
> > Object Models are all you need (so you can establish the internal Methods,
> > Properties and Events.) All of these are available from MSDN. Include
> > "Object Model" in your search terms...
> >
> > If you get stuck, write me privately.
> >
> > Pete.
> >
> > COBOL ALERT: You will need OO knowledge to achieve these things
> > successfully...
> >
> >
- Next message: Thane Hubbell: "Re: CoBOL moved to OO"
- Previous message: JerryMouse: "Re: Date manipulation"
- In reply to: R. Hendriks: "Re: Interaction with office programs"
- Next in thread: R. Hendriks: "Re: Interaction with office programs"
- Reply: R. Hendriks: "Re: Interaction with office programs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]