I.Benini
19th September 2002, 15:51
I can't print report in HTML.
I defined a new device with 4GL program = ttstpconv and argument HTML (uppercase), but it doesn't work well.
Examples:
<html><body bgcolor="#ffffff"><pre>
<A NAME=page_0></A>
...
instead of
<A NAME="page_0"></A>
And more over:
<HR>
</pre></body></html>
but where is </HR> ?
Other info:
BaaN IV c4, sp8 installed.
Can someone help me ?
Thanks.
günther
19th September 2002, 16:11
I've been checking your output and must say, that you are right. But I don't have problems with opening the generated html output with the internet explorer ...
Here is the stripped hmtl output:
<html><body bgcolor="#ffffff"><pre>
<A NAME=page_0></A>
Date ... Page ...
Company ...
<A HREF=#page_0> [Top] </A> <A HREF=#page_1> [Next] </A> <A HREF=#page_-1> [Prev] </A>
<HR>
</pre></body></html>
I.Benini
19th September 2002, 16:57
Thank you, but I need a "true" HTML report.
RobertB
24th September 2002, 13:18
FWIW, the <HR> element (horizontal rule) has no corresponding </HR> end-tag (it's "forbidden").
You're right however to insist that the tag-attributes be quoted (especially when they contain whitespace) - at the moment, the browsers out there are generally generous in allowing non-quoted attributes, but this behaviour will in future be deprecated.
RobertB
17th January 2003, 08:50
Hmmm,
I'm not sure what you mean by "quit this part" in your HTML code.
Can you give us some more details?
bizen99
17th January 2003, 09:45
hi,
the output of my report show this sections :
<A HREF=#page_0> [Top] </A> <A HREF=#page_1> [Next] </A> <A HREF=#page_-1> [Prev] </A>
<HR>
when I view that in a web browser show :
[Top] [Next] [Prev]
I want that when I'll see in a web browser, the previous lines not show in the explorer
thanks
RobertB
17th January 2003, 13:18
OK,
It's still not clear what you mean but here's a couple of hints.
1. If you do not want to see the links in your document, you may simply delete the lines containing the code <A HREF=#page_0> [Top] </A> <A HREF=#page_1> [Next] </A> <A HREF=#page_-1> [Prev] </A> <HR>
2. If you do want to see the links in your document when displayed in the browser, but they are not functioning correctly, then you have to check both sets of links within the document.
In order that the links (pointing to sections within the same HTML document) can function correctly, two sets of links are needed: source links and target links. So your document might look something like this:<html>
<body>
<!-- Comment: this is a target link, referred to by the 'name="page_1"' attribute -->
<a name="page_1"><h2>Page One</h2></a>
...
... Page One contents...
...
<!-- Comment: these are source links, which refer to the "named" links -->
<a href="#page_1"> [Top] </a> <a href="#page_2"> [Next] </a>
<!-- Comment: here's the second target link at top of page two-->
<a name="page_2"><h2>Page Two</h2></a>
...
... Page Two contents...
...
<!-- Comment: source links at bottom of page two -->
<a href="#page_1"> [Previous] </a> <a href="#page_2"> [Top of this page] </a> <a href="#page_3"> [Next] </a>
<!-- Comment: here's the third target link at top of page three -->
<a name="page_3"><h2>Page Three</h2></a>
...
... Page Three contents...
...
<!-- Comment: source links at bottom of page three-->
<a href="#page_2"> [Previous] </a> <a href="#page_3"> [Top of this page] </a> <a href="#page_4"> [Next] </a>
...
... etc...
...
</body>
</html>
It could be that you're simply having problems with the "-" sign in the "<A HREF=#page_-1>" part of the code (?), in which case you'll need to edit the "-" sign out and replace it with something more sensible...
Hope this helps,
RobertB
bizen99
17th January 2003, 13:24
thanks RobertB,
but,
I do not want to see the links in your document, but I lose a lot of time deleting the links, Is there a fast way to delete all links in the html document?
thanks
RobertB
17th January 2003, 14:06
Well, it seems to me you have five options:
1. Leave the document "as it is";
2. "Slow'n'dirty" - delete the links manually;
3. Open the document in a "programmer-friendly" text-editor (Textpad, UltraEdit, etc) which can let you define, and run, macros. You would base your macro on recognition of start- and end-tags (<a> and </a>) and delete anything between them;
4. Do a similar thing with a script (grep on Unix, for instance) or program (VB?);
5. Save your reports in some text-only format, write your own HTML converter (write it so it creates no <a>-tags). Doing it this way gives you most flexibility, but it wouldn't be the easiest option.
Have fun :cool: ,
RobertB
patvdv
17th January 2003, 14:23
You could fairly easy accomplish this with an AWK script using regular expressions. Something like:
{
gsub(/<(a|A).*<\/(a|A)>/,"", $0)
printf ("%s\n", $0)
}