How to Print the Whole 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
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

How to Print the Whole Page

Post by caseywhite »

I wanted to ask this question again even though a thread already exists. I have a very simple test case where I have 3 labels on the page that will make sure a user would have to scroll to see the data in all 3 labels. When I try to print this only one page appears. In the other thread it sounded like if you just used labels then the entire page would print and not just what is visible in the browser. That doesn't seem to be the case. Is the only option is you want a good printable version to create a PDF a user can download?

Code sample is below.

Begin_Com Role(*EXTENDS #PRIM_WEB)
Define_Com Class(#PRIM_LABL) Name(#Label1) Caption('Label1') Displayposition(1) Ellipses(Word) Height(580) Left(48) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(0) Verticalalignment(Center) Width(120)
Define_Com Class(#PRIM_LABL) Name(#Label2) Caption('Label2') Displayposition(2) Ellipses(Word) Height(509) Left(0) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(580) Verticalalignment(Center) Width(120)
Define_Com Class(#PRIM_LABL) Name(#Label3) Caption('Label3') Displayposition(3) Ellipses(Word) Height(380) Left(0) Parent(#COM_OWNER) Tabposition(3) Tabstop(False) Top(1089) Verticalalignment(Bottom) Width(120)

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

Re: How to Print the Whole Page

Post by Stewart Marshall »

Hi Casey

Sadly, you're completely at the mercy of the browser and the user when it comes to printing.

For a "good printable version", the best technique I know is to construct a PDF.

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Post Reply