 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Elena Tejado Guest
|
Posted: Tue Aug 30, 2005 9:34 am Post subject: WordPerfect in TOleContainer |
|
|
I have to display a WordPerfect document into OleContainer but I don't know how.
When I work with Word or Excel I use OleContainer.OleObject.Application.WordProperty but when I try to do the same with WordPerfect I get an error "Interface not supported".
How can I access properties and methods from WordPerfect???
Thanks in advance.
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Tue Aug 30, 2005 10:45 am Post subject: Re: WordPerfect in TOleContainer |
|
|
Have you install the Corel Office?
If yes then create the WordPerfect.PerfectScript object and load your
wpd-file using ole-automation:
yourOLEContainer.CreateObject('WordPerfect.PerfectScript', False);
yourOLEContainer.OLEObject.FileOpen(yourFileName)
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Elena Tejado" <elenath95 (AT) hotmail (DOT) com> wrote
| Quote: |
I have to display a WordPerfect document into OleContainer but I don't
know how.
When I work with Word or Excel I use
OleContainer.OleObject.Application.WordProperty but when I try to do the |
same with WordPerfect I get an error "Interface not supported".
| Quote: | How can I access properties and methods from WordPerfect???
Thanks in advance.
|
|
|
| Back to top |
|
 |
elenath Guest
|
Posted: Wed Aug 31, 2005 9:50 am Post subject: Re: WordPerfect in TOleContainer |
|
|
Yes, I had already installed the Corel Office (v7).
I try to load a wpd-file with your code but I got an error:
"Class not registered", but I can load a WPD-file with
MyOleContainer.CreateObjectFromFile(myFile, False)
But I still have problems:
1. My file is opened twice, once into my OleContainer and other in
WordPerfect (I don't want WordPerfect to be opened)
2. I don't know how to access to properties or methods, I always get the
same error: "interface not supported"
Any ideas???
Thanks, Elena.
| Quote: | Have you install the Corel Office?
If yes then create the WordPerfect.PerfectScript object and load your
wpd-file using ole-automation:
yourOLEContainer.CreateObject('WordPerfect.PerfectScript', False);
yourOLEContainer.OLEObject.FileOpen(yourFileName)
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Elena Tejado" <elenath95 (AT) hotmail (DOT) com> wrote in message
news:43142841$2 (AT) newsgroups (DOT) borland.com...
I have to display a WordPerfect document into OleContainer but I don't
know how.
When I work with Word or Excel I use
OleContainer.OleObject.Application.WordProperty but when I try to do the
same with WordPerfect I get an error "Interface not supported".
How can I access properties and methods from WordPerfect???
Thanks in advance.
|
--- posted by geoForum on http://delphi.newswhat.com
|
|
| Back to top |
|
 |
Mark Williams Guest
|
Posted: Wed Aug 31, 2005 3:25 pm Post subject: Re: WordPerfect in TOleContainer |
|
|
"elenath" <elenita (AT) yahoo (DOT) com> wrote
| Quote: | Yes, I had already installed the Corel Office (v7).
I try to load a wpd-file with your code but I got an error:
"Class not registered", but I can load a WPD-file with
MyOleContainer.CreateObjectFromFile(myFile, False)
But I still have problems:
|
Just a guess, but perfectscript is a separate application to wordperfect.
You probably have to register that as well.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|