printing the whole web page

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Rieko Saitoh
Posts: 39
Joined: Sat Apr 30, 2016 11:46 am

printing the whole web page

Post by Rieko Saitoh » Wed Jun 08, 2016 4:50 pm

Hi,

I would like to print the whole web page in spite of the size of the browser.
Now, only the area that is displayed in the browser of the web page is printed. When only the part of the web page was shown to a browser, only the indicated web page area becomes the print target.

example:
In the case of this WEB page,
5.png
5.png (28.51 KiB) Viewed 2859 times
Reduce the size of the browser,
Press the browser print button to display a preview.
Only area that has been displayed in the browser of the WEB page is printed.
1.png
1.png (60.96 KiB) Viewed 2859 times
But, for example, in web manual of LANSA, even if the size of the browser is reduced, all areas of html page are printed.
2.png
2.png (137.85 KiB) Viewed 2859 times
I would like to achieve this behavior (even if the size of the browser is reduced, all areas of html page are printed) in a web page.
Does anyone know the way?


Thank you.

Best regards,
Rieko Saitoh
LANSA japan

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: printing the whole web page

Post by Stewart Marshall » Fri Jun 10, 2016 11:27 am

I think the short answer is that you can't.

Browsers will only print the HTML that is currently part of the page.

As the help pages are static HTML, resizing the browser has no effect on the HTML that currently exists in the browser DOM.

However, VL dynamically builds the browser DOM for list content, so when you shrink the browser you are effectively removing HTML from the page.
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

Rieko Saitoh
Posts: 39
Joined: Sat Apr 30, 2016 11:46 am

Re: printing the whole web page

Post by Rieko Saitoh » Wed Jun 15, 2016 12:58 pm

Hi Stewart,

Thank you very much for your answer.
It's unfortunately, but it is good I am able to understand why it isn't possible.
Thank you for your support.

Best regards,
Rieko Saitoh

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: printing the whole web page

Post by Stewart Marshall » Wed Jun 15, 2016 8:45 pm

Hi Rieko

There's a little more to printing

The sys_web.PrintStart and sys_web.PrintEnd can be used to determine that the user has requested a print. You can then modify the page to appear as you want.

One option is to construct a panel at runtime with the information that you require, using labels rather than a list. This will then print all of the data as the labels are static items.

Once printing has finished, hide the panel.

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

Rieko Saitoh
Posts: 39
Joined: Sat Apr 30, 2016 11:46 am

Re: printing the whole web page

Post by Rieko Saitoh » Thu Jun 16, 2016 12:28 pm

Hi Stewart,

Thank you for the more information about printing.
I will try using sys_web.PrintStart and sys_web.PrintEnd.

Thank you.

Best regards,
Rieko Saitoh
LANSA japan

Post Reply