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 

Problem with Automation

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





PostPosted: Fri May 04, 2007 1:14 am    Post subject: Problem with Automation Reply with quote



Hello,

I am running TurboDelphi Professional (BDS 2006 ?) on Win XP. I have an app
that makes calls to Powerpoint for processing files. The app works fine on
a machine that has Powerpoint 2003 SP2 installed.

When I copy the app (a single executable) over to another machine...
Win XP Pro, Powerpoint 2000, SP-3, it blows up....

Specifically, on...

var
lPresentation: PowerPointPresentation;
lApplication: PowerPointApplication;

begin
....
lPresentation := lApplication.Presentations.Open(FileName, msoFalse,
msoFalse, msoFalse);




I KNOW that FileName points to a valid PPT file.


My USES clause is...

uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs,
AdvPageControl, ComCtrls, StdCtrls, HTMLText, jpeg, ExtCtrls, Buttons,
PlusGutter, PlusMemo, JvDialogs, JvAppInst, ParamListbox, clipbrd,
OleServer, {msppt2000,} {Office2000,} Office_TLB, Powerpoint_TLB,
FileCtrl, FlCtrlEx, Mask,
JvExMask, JvToolEdit, JclFileUtils, Math, htmlbtns, Psapi, tlhelp32,
EasyFileSearch, FileSearch, AdvAlertWindow, JvComponent, JvBaseDlg,
JvDesktopAlert, pmprint, PlusToFormat, AdvSelectors, asgcombo, ColorCombo,
JvWizard, JvExControls, JvComponentBase, JvWizardRouteMapNodes,
JvWizardRouteMapSteps {HyperStr};

The only Type Library that I have imported is Microsoft Powerpoint 11.0
Object Library.

The {msppt2000,} {Office2000,} references are because I had this code
running under a different (no longer accessible) computer which had Delphi 5
Pro and PPT 2000.

Any help or ideas greatly appreciated.

Thanks
George S
Back to top
Dmitry Streblechenko
Guest





PostPosted: Fri May 04, 2007 1:27 am    Post subject: Re: Problem with Automation Reply with quote



You must be referencing the wrapper unit for the lowest supported version of
PP (2000).
There is nothing wrong with developing on a machine with PP2003 installed
using the PP2000 unit.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"George S" <noreply (AT) nowhere (DOT) com> wrote in message
news:463a42a4$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello,

I am running TurboDelphi Professional (BDS 2006 ?) on Win XP. I have an
app that makes calls to Powerpoint for processing files. The app works
fine on a machine that has Powerpoint 2003 SP2 installed.

When I copy the app (a single executable) over to another machine...
Win XP Pro, Powerpoint 2000, SP-3, it blows up....

Specifically, on...

var
lPresentation: PowerPointPresentation;
lApplication: PowerPointApplication;

begin
...
lPresentation := lApplication.Presentations.Open(FileName, msoFalse,
msoFalse, msoFalse);




I KNOW that FileName points to a valid PPT file.


My USES clause is...

uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs,
AdvPageControl, ComCtrls, StdCtrls, HTMLText, jpeg, ExtCtrls, Buttons,
PlusGutter, PlusMemo, JvDialogs, JvAppInst, ParamListbox, clipbrd,
OleServer, {msppt2000,} {Office2000,} Office_TLB, Powerpoint_TLB,
FileCtrl, FlCtrlEx, Mask,
JvExMask, JvToolEdit, JclFileUtils, Math, htmlbtns, Psapi, tlhelp32,
EasyFileSearch, FileSearch, AdvAlertWindow, JvComponent, JvBaseDlg,
JvDesktopAlert, pmprint, PlusToFormat, AdvSelectors, asgcombo,
ColorCombo,
JvWizard, JvExControls, JvComponentBase, JvWizardRouteMapNodes,
JvWizardRouteMapSteps {HyperStr};

The only Type Library that I have imported is Microsoft Powerpoint 11.0
Object Library.

The {msppt2000,} {Office2000,} references are because I had this code
running under a different (no longer accessible) computer which had Delphi
5 Pro and PPT 2000.

Any help or ideas greatly appreciated.

Thanks
George S

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.