Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
Discussions by product
>
Reporting tools (GRW, GRE)
>
HTMLBox Question
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: HTMLBox Question (Read 10846 times)
Gary C.
Posts: 109
HTMLBox Question
«
on:
June 28, 2011, 04:13:46 pm »
Hi
I need to be able to produce a report (it is actually a product technical specification) and it will contain text formatted as html.
The HTMLBox works great but does not span pages - most of the specifications though have more than a page worth of text.
Does anyone have any suggestions as to possible ways to work around this?
Thanks
Gary
Alex G.
Posts: 155
Re: HTMLBox Question
«
Reply #1 on:
June 28, 2011, 05:10:15 pm »
Hi Gary,
If you cut the HTML document into smaller chunks (for example have each paragraph start a new chunk) and output each of these as a separate HTMLBox then it will appear as one document and a page break will appear whenever a chunk as a whole doesn't fit the page anymore. The potential whitespace at the bottom of a page will be smaller if the chunks are smaller. If the document data is stored in a 4GL variable (rather than using a url pointing to a file) then the splitting loop can be written in 4GL. As a start you could split at any P,BR, H1, H2,..,OL,TABLE,.. element. You can do this using the XML functions in case it is a XML document and otherwise use the string functions. Then the fragments are surrounded by "<HTML><BODY>" and shipped in a PRINT statement. If you have long tables or item lists then these may produce large gaps or the fragments may not fit on the page at all. In any case I will ask a request for enhancement to be filed for this.
Regards,
Alex
Christine R.
Posts: 450
Re: HTMLBox Question
«
Reply #2 on:
June 28, 2011, 05:19:52 pm »
Hello,
The following request has been registered in our database for that:
#20535 : Having the possibility for HTMLBox to span pages.
Best regards,
Christine HEIM-REBIERE
Four J's Support Team
Pages: [
1
]
Reply
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...