Link to home
Start Free TrialLog in
Avatar of Exie
Exie

asked on

Java -> Native OLE Calls

I would like make a server-side java app execute local OLE calls like :

  Set objImpApp = CreateObject("CognosImpromptu.Application")
  objImpApp.Visible 1
  objImpApp.OpenCatalog strCatalogName, strUserCalss,"User","username","password"
  Set objImpRep = objImpApp.OpenReport(strReportFileName,strPromptVal)
  set pdfrep=objImpRep.publishpdf
  pdfrep.publish
  objImpRep.CloseReport
  objImpApp.CloseCatalog
  objImpApp.Close

The goal is to run a local app, which will produce a report, and then somehow send the PDF file down to the user. I'll settle for making it produce the report first.

I've never really dabbled with Java much, so any notes welcome.

PS. I have a .tlb file for my application I want to call (not sure how I use it tho).
ASKER CERTIFIED SOLUTION
Avatar of Venci75
Venci75

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

Exie:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: Venci75

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thomas Boshell
EE Cleanup Volunteer