You are here: Web Apps with Visual LANSA > 11. Using SYS_WEB to access Browser and JavaScript Features > 11.8 Printing Interface

11.8 Printing Interface

The Web Application object has a Print method as well as PrintStart and PrintEnd events. This method and events allow the user to control the printing process and to configure the page ready to be sent to the printer.

For example, it might be desirable to produce a printer friendly layout rather than printing what is visible on the screen.

Evtroutine Handling(#Print.Click)

 

  #sys_web.print

 

Endroutine

 

Evtroutine Handling(#sys_web.printstart)

 

  #sys_web.alert( 'Printing ...' )

 

Endroutine