Link to home
Start Free TrialLog in
Avatar of sushmasriram
sushmasriram

asked on

Print function

I need to add print function to my application. How do I do it?
Avatar of sushmasriram
sushmasriram

ASKER

// Clicked script for m_print

window      lw_sheet
// Print active sheet
lw_sheet = w_genapp_frame.GetActiveSheet ()
if IsValid (lw_sheet) then
      if isvalid(w_downtime) then w_downtime.wf_print()
      if isvalid(w_downtime_reason) then w_downtime_reason.wf_print()
end if

Above is the script for print function in my application. When I run my application, I am getting an error Powerbuilder application execution error R0021. Bad run time function reference at line 7 in clicked event of object m_print of m_genapp_frame
ASKER CERTIFIED SOLUTION
Avatar of diasroshan
diasroshan
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial