Solved

MicroSoft Project 98

Posted on 2000-03-29
13
771 Views
Last Modified: 2008-02-01
I need to make a DDE With Microsoft Project 98,
 I Know that in delphi's menu in project and import the MSPRJ8.OLB

  Well The question is if i insert and OLEContainer in the form with a new MSProject and When i add a new Button i can say
 
   ProObject := CreateOleObject('MSPROJECT.APPLICATION');

  the ProObject is OLEVARIANT

 how can i assing the

OleContainer1.OleObject.('...........')
 
  ('Here goes some string')

  i tried

   Application.Project
   MsProject.Application
   MsProject.Application.

Well

  if i do The ProObject Methods there is and error between the Ole And The ProObject
  if There is any one that can add Task,Start,Finish, Predesesors, and resources, % Made, to Project

I NEED THE CODE NOT OCX OR OTHER LINKS TO WEB PAGES, OR SOME YOU HAVE TO DO BLA BLA THE CODE. 1000

I NEED TO CONTROL MSPROJECT WITH DELPHI OK NOT WITH OTHER LANGUAJE OR SOME STUPID COMMENTS, CODE CODE OK ...


   Hey Okey i had 2 accounts in the old Expets-exchange systems what ever
   
  hack -> i do not belive so


   SO HOW WHATS THE POINTS need CODE i will give those points






  ProObject is an OleVariant Declared in the public class of the form

  when a user press a button i have to assing the ProObject := OleContainer1.Olevariant.....


    There is in example that come in Delphi that is called ......Delphi\Demo\ActiveX\OleAuto\Word8\word8auto.dpr

     i have to do something like this but using project and assining new Task, new Resorces , xxxxxx


   regards


0
Comment
Question by:VictorZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 2
  • 2
  • +2
13 Comments
 
LVL 13

Expert Comment

by:Epsylon
ID: 2666966
I think you have to use this:

OleContainer1.CreateObject('MSPROJECT.APPLICATION', false);
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2667022
Hmmm... VictorZ == CappucioVictor???

Cheers,

Raymond.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2667100
Yup, has to be...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Expert Comment

by:Epsylon
ID: 2667131
You can also do something like this using the type library:

uses
  XXX_TLB;
 
var
  Doc : IDocument;
begin
  Doc := CoDocument.Create;
  Doc.SomeMethod(Param1, Param2, ...);
  .......
 
0
 
LVL 3

Expert Comment

by:darinw
ID: 2667684
This account has been closed temporarily.

darinw
Customer Service
0
 
LVL 1

Expert Comment

by:snoop_doggy_dogg
ID: 2669768
Looks like this dude hacked his way into more points!

Woof!
http://www.woofwoofwoof.com
0
 
LVL 3

Expert Comment

by:darinw
ID: 2670196
No real hack involved. He appears to have broken the agreement he made with us for having one account only.

darinw
Customer Service
0
 

Author Comment

by:VictorZ
ID: 2674085
Edited text of question.
0
 

Author Comment

by:VictorZ
ID: 2674095
Edited text of question.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2674135
I know this is for MSproject 95 but maybe this could be of help:

http://www.djpate.freeserve.co.uk/MSProject95.zip
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2675328
I don't think you can assign an object that was created with CreateOleObject to an OleContainer.

The only thing I can think of is:

OleContainer1.CreateObject('MSProject.Project', false);
OleContainer1.DoVerb(ovShow);


Eps.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2702209
VictorZ?
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 1000 total points
ID: 2713404
>LOCK<
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question