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

Problems with OLE Command inserter

10 views
Skip to first unread message

Trevor Campbell

unread,
Nov 10, 2000, 3:00:00 AM11/10/00
to
Hi everyone

I'm having some problems with the OLE Command inserter.

My environment is as follows:

1. Windows 2000 (I'm logged in as Administrator locally)
2. Word Perfect 9 SP 3 (9.0.0.738) - still waiting on SP4 in Australia...
3. Delphi 5
4. WP 9 SDK Downloaded from the internet early in Nov. (no version that I
know of)

I'm connected to both Novell Netware server & NT Domain

It's also happening at home where I have Win 98 Second Editon and WP 9 SP3
also.

The problem I'm having is that the OLE Command inserter is only showing the
"Command Type" of WordPerfect-EN and not allowing me to select
"PerfectScript". When I first installed it was there but not any more...
From memory I also had QuatroPro but again not any more...

I know I did have it working at one stage as I have previously used it to
insert the "EnvSelectedText" command for a previous app I wrote but now I
can't find that (and even others I could find the other day.)

I've tried re-installing the SDK (I'll try removing / re-installing in a
second) and even re-installing WP 9 SP3...

Anyone got any ideas on how to fix this ?

Thanks
-----------[Trevor Campbell]--------------------------------------------
Bekkers IT Perth Western Australia
t...@bekers.com.au
Replies to newsgroup only please unless requested.
Unsolicited e-mails will be deleted without being read.
----------------------------------------------------------------------------
------

CHRIS J MATHEWS

unread,
Nov 10, 2000, 3:00:00 AM11/10/00
to Trevor Campbell
I imported the TypeLib into Delphi 5 and seem to have had a lot of success with
it. You might want to look at that.

Mark Allred

unread,
Nov 11, 2000, 3:00:00 AM11/11/00
to
I had to look around for the environment stuff too. If I understand your
question, try ?SelectedText under the WordPerfect-EN. It inserts
EnvSelectedText.

Trevor Campbell

unread,
Nov 13, 2000, 3:00:00 AM11/13/00
to
You're spot on Mark - I played with it more on the weekend and found that I
was looking in the wrong spot for some of the commands I wanted.

I did however, find an article in the KB that allows me to see some extra
commands (eg: VarAssign etc) in the OLE Command inserter. It's document
number 202102 (link below) and refers to "Using Theta Indexes" in Perfect
Script.

http://kb.corel.com/kbdocs/WP90WIN/WP90WIN/WP90WIN_202102.htm

With Theta Indexes turned ON I can see 2140 WP commands but with Theta
Indexes turned OFF I can see 2594 commands. VarAssign and VarDiscard are 2
that I was looking for...

What do you use to READ a variable from WP ? - Note: not the selected text
as I did work that one out...

Neither way lets me see any Perfect Script commands - Should I be able to ?
I'm sure I could once before.

Thanks
-----------[Trevor Campbell]--------------------------------------------
Bekkers IT Perth Western Australia
t...@bekers.com.au
Replies to newsgroup only please unless requested.
Unsolicited e-mails will be deleted without being read.
----------------------------------------------------------------------------
------

Mark Allred <mal...@utah.uswest.net> wrote in message
news:3A0D979D...@utah.uswest.net...

Trevor Campbell

unread,
Nov 13, 2000, 3:00:00 AM11/13/00
to
Hi Chris

Thanks for the reply.

I must confess to being only a beginner when it comes to Delphi - especially
the OLE stuff - this is my frist attempt at using it.

I've heard about the TypeLib (Type Library) but what exactly is it and how
do you import it ?
I think I'll dig the manual out right now and read up on TypeLib...

Am I correct in thinking it's a "Header" (for want of a beter word) file
that identifies the valid commands for WP and therefore allows Delphi to do
compile time checking of commands ?

If so then that sounds most useful.

Thanks
-----------[Trevor Campbell]--------------------------------------------
Bekkers IT Perth Western Australia
t...@bekers.com.au
Replies to newsgroup only please unless requested.
Unsolicited e-mails will be deleted without being read.
----------------------------------------------------------------------------
------

CHRIS J MATHEWS <CHRIS....@prodigy.net> wrote in message
news:3A0C131A...@prodigy.net...


> I imported the TypeLib into Delphi 5 and seem to have had a lot of success
with
> it. You might want to look at that.
>

> > ------
>

Chris Mathews

unread,
Nov 13, 2000, 3:00:00 AM11/13/00
to Trevor Campbell
From Project|Import TypeLib. The WP Typelib is in wpwin9.exe. Using the
TypeLib is nice because the TypeLib is a Interface (or Header) to the exe. All
declarations are documented, and Delphi will typecheck your code.

James M Moore

unread,
Dec 7, 2000, 3:00:00 AM12/7/00
to Trevor Campbell
PerfectScript is not available as a command type when you are in the OLE command
Inserter. All you have available to you are the product commands, WP, QP, and
Presentations. In the CI, it shows as ?SelectedText. When it gets inserted
into Delphi is when it's switched to the sytax needed for working as an WP OLE
command.

I hope this helps.

James

JamesMM.vcf
0 new messages