Focal Point
[CLOSED]-HTMLFORM

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4237013386

August 04, 2016, 10:14 PM
Dr. Nick
[CLOSED]-HTMLFORM
Hi,

I'm developing an application that generates reports in MS Word format. The report generation process is perfect but an empty window is generated requiring the business users to manually close it for every report generated.

Sample code is as follows:

...
ON TABLE HOLD AS HOLD1 FORMAT HTMTABLE
...

SET HTMLFORMTYPE = DOC
-RUN
-HTMLFORM BEGIN
!IBI.FIL.HOLD1 ;
-HTMLFORM END

I've tried a number of WebFocus WEBVIEW... commands and the best configuration places the report in that window but there is no option to save to a MS Word file.

Any assistance is appreciated.

Thank you,
Nick

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
August 04, 2016, 10:22 PM
Waz
Not sure if its relevant in your case, but I have noticed that in 8.1.05, the window closes automatically when files like XLSX and PDF are returned


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 04, 2016, 11:53 PM
Dr. Nick
Hi Waz,

This client is on 7.7.03. Do you know of a technique to name the window that -HTMLFORM creates? If so, maybe issuing a WINDOW.CLOSE with the same name will do the trick.

Thanks...

Nick


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
August 05, 2016, 12:00 AM
Waz
No I don't unfortunately.

You could always open up a case with IBI and ask if they have a way.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 05, 2016, 12:15 AM
Dr. Nick
Yup...there is always that...

I'm going to kick it around a bit longer, sleep on it tonight and see if the "tech angel" visits while asleep...lol

Thanks again... I'll update as I find an answer for you and others to use...


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
August 05, 2016, 12:24 AM
Waz
Sweet dreams, there are many "tech angels" out there.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 05, 2016, 02:21 PM
susannah
have you messed about with the redirection settings? wf admin console, config, redirection settings....
that panel of choices has to do with that extra window being opened... whatever you have for .doc extension(y or n), change it, clear cache, and try again.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 06, 2016, 09:48 AM
Dr. Nick
Hi,

Susannah: I don't have access to those controls and there are many applications, at this client site. So, that option is not available to me.

My next move is to use a non-Focus method to open a named window, so, I than can close it by name.

I'll update this post as more info is available.

Thank you all for your assistance...


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.