BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WordPerfect in TOleContainer

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Elena Tejado
Guest





PostPosted: Tue Aug 30, 2005 9:34 am    Post subject: WordPerfect in TOleContainer Reply with 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".
How can I access properties and methods from WordPerfect???
Thanks in advance.
Back to top
Mike Shkolnik
Guest





PostPosted: Tue Aug 30, 2005 10:45 am    Post subject: Re: WordPerfect in TOleContainer Reply with 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

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





PostPosted: Wed Aug 31, 2005 9:50 am    Post subject: Re: WordPerfect in TOleContainer Reply with 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:
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





PostPosted: Wed Aug 31, 2005 3:25 pm    Post subject: Re: WordPerfect in TOleContainer Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.