Print function

I need to add print function to my application. How do I do it?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sushmasriramAuthor Commented:
// 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

does ur window w_downtime have the function wf_print()  ???

If yes,
try creating a global function wf_print() and try calling it from ur above code instead of w_downtime.wf_print()


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.