Link to home
Start Free TrialLog in
Avatar of Lee
LeeFlag for United States of America

asked on

HTA File - Adobe Issue

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,
Avatar of RobSampson
RobSampson
Flag of Australia image

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.
Avatar of Lee

ASKER

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?
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.
Avatar of Lee

ASKER

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,
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.
Avatar of Lee

ASKER

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&
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

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