2014 Aug 19 3:05 PM
Hi everybody,
How can i print header data dynamically? for eg: Window PERMIT
_____________________________________________________________
| | | Permit |
| | ORDER | No 1 |
| LOGO | 1000000120 | No 2 |
| | | | | | | No ... | | |
|___________ |_______________________________|_________________|
| |
| | | | |
| | | | |
| | | | |
| | | MAIN | | |
| | | | |
| | | | |
| | | | |
For your information : I have a loop with internal table of permits in driver program, and i call WRITE_FORM inside loop.
Problem : Only the last row is printed.
Please help me to solve this problem.
Best regards,
Younes
2014 Aug 19 3:18 PM
Not sure I understand, can't you just use a variable and fill that at runtime?
2014 Aug 19 3:58 PM
No, there may be one or more permits for the same order. And I need to edit all permits and manage the height of the window.
My question is how to display all permits and how to manage the height of the window according to the number of permits displayed.
I know that is possible in the MAIN window. But what about header window of the form?
2014 Aug 20 11:40 AM
Hi,
You can't change the size of the windows at runtime, and the windows of type other than MAIN do not trigger a page break (in case the contents of your header would exceed the size of page). In this case you have to reconsider placing the list of permits in page header window.
cheers
Janis
2014 Aug 20 3:39 PM
the main window is the only place for dynamic content. if your header size is dynamic and affects the size of the main window, you have to print the header information inside the main window.
if you can leave the size of the window fixed, you can use seperate windows.
if not, id suggest to define an output structure for a whole line
you can separate the content by using /E statement
MAIN-Window
/E HEADER
.
..
.
/E MAIN
.
.
.
.
btw. dont use _ and | characters to print a frame. Use Box-Command and do dynamic box printing. Note that you can print a BOX like a _ if the parameters are right. the fortune is that the preview and the output is the same.
regards
Stefan Seeburger
2014 Aug 22 11:36 AM