?
Solved

HTA File - Adobe Issue

Posted on 2009-12-16
8
Medium Priority
?
313 Views
Last Modified: 2012-05-08
Hello All,
We use an HTA file to start a web based oracle application, we have just recently change from j- initiator to java (JRE). After the change PDF file no longer open up from within the application. They use to open within a new browser with adobe embedded. I have turn off the option in Adobe to start in browser as an off chance fix. Do some tag/flag have to be set to allow the HTA to spawn new windows?
Rgs,
0
Comment
Question by:dehmerl
  • 4
  • 3
7 Comments
 
LVL 65

Expert Comment

by:RobSampson
ID: 26067584
Hi, can you show us the part of the HTA code that opens a PDF file?  Also, what version of the Adobe Reader are you using?

Rob.
0
 

Author Comment

by:dehmerl
ID: 26072302
The code to open the pdf comes from an oracle form - hta calls the oracle app, so no code the is directly related to the pdf.
 We have adobe 9.1.3 - the pdf is produced by oracle reports and the file is called up by a url. So I hope that helps - I can dig up the code that starts the oracle app if that helps?
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 26075409
OK....where is the URL generated, and where is it clicked from?  If the link is placed in the HTA, and clicked from there, maybe we can change the URL to open in a new window or something...

Rob.
0
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!

 

Author Comment

by:dehmerl
ID: 26076102
Rob,
Ok, now that I am in front of a PC&
The HTA file starts oracle forms based application from a link like this (edited to omit company info)
http://appserver.ourdomain.com:99999/forms/frmservlet?config=app
Once in the application you have drop downs similar to file, edit, view at the top, for simplicity we will call on of the drop down report.  At this point you select the report you want, lets call it MyReport, a new form opens up and you fill in a few bits of information and click Run Report button. Once the button is clicked the bits of information are passed to a backend oracle reports server, this server then produced a PDF file.
So if I use my URL outside of the HTA file and run the report a URL like this would pop open in a new window.
http://appserver.ourdomain.com:99999/reports/rwservlet/getjobid209?server=reportserver
The job number changes with each report.
Rgs,
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 26076145
So from the first link you click from the HTA, does the application open *inside* the HTA, or as a separate IE window?  If it's not in a separate IE window, would you have any objection to making it launch a separate IE window? This way, it should have the same behaviour as if it were manually ran by the user in IE, and therefore should open the report correctly, right?

Regards,

Rob.
0
 

Author Comment

by:dehmerl
ID: 26076225
Rob,
Yes it runs inside the HTA windows, earlier version that ran on j-initiator would open up a window outside of the HTA when a report was run, now that we are on Sun Java now a window does not open.
It would be nice to keep the main forms app inside the HTA as it is a cleaner look and stops people from opening up another URL in the back end session and killing off the forms.
However for testing, how would I have the HTA spawn an IE window? It may lead to something&
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 2000 total points
ID: 26076349
To launch a separate window, instead of the link, change it to a button, like this:
    <input type="button" name="btn_launch" id="btn_launch" value="Launch Site" onclick="vbs:LaunchSite">

and have a Sub procedure of this in your Script section:

Sub LaunchSite
      Set objIE = CreateObject("InternetExplorer.Application")
      objIE.Visible = True
      objIE.Navigate "http://www.google.com"
End Sub


Regards,

Rob.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

621 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