Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958325

Pages: 1

Unregistered




creating object of desktop application in java
      #41517 - 12/11/06 04:44 AM

I want to create application object in a project.
I have to write equivalent code in java and VB code is already exsting.
can it be possible?
the MS code is following--
Set OPApp = GetObject("", "opp.application")
success = OPApp.Login("GUEST", "")
OPApp.Minimize
'Load project
OPApp.FileOpen Sheet1.TextBox1.Text, "Resource", "Exclusive"
'Define project and activity object variables
iCurrProj = OPApp.Resources.Count
Set OPProject = OPApp.Resources(iCurrProj)
'Set OPAct = OPProject

Workbooks.Open Filename:= _
"C:\Pranav_Test.xls"
Sheets("Sheet1").Activate
Range("A1").Select
strVal = Range("A" & 1).Value


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3328

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5