I want to use a Clickable Print Button

Babu0519

Member
Hi All,

I want to insert a clickable button "Print" which prints the information on the application screen through local windows configured printer.
I did this in my previous client place usning 8.96 toolset but tried the same code in 8.97 its not working. below is the code

1092 // Windows Printing
1093 VA frm_TextGlob = ""
1094 VA frm_TextGlob = concat("<table width=100%>",'<a href=#top onclick=window.print()><b><font size=2 color=black face="Arial">PRINT a Copy of This Statement')
1095 VA frm_SegID = [VA frm_SegID]+1
1096 Add Segment(FC Pay Stub, VA frm_TextGlob,
<Default,Default,0,Default>, <Yes>, VA frm_SegID) .


What this will do is have a clickabe text saying

PRINT a Copy of This Statement. When clicked on it , it will bring printers configured on your local pc.
 
Where you able to resolve this? I am having same issue in 90, works in 810.
 
Where do you usually enter this code? Is it in the event rule of the newly inserted pushbutton? I tried doing this and I cannot see any possible entry for the 1st parameter of "ADD SEGMENT" System function which is "Text Control"

Thanks!

E812
8.98.6
 
Did you get this to work? I am having an issue when you print, the exit buttons are not working anymore.

Thank you.
 
Back
Top