Print function

Posted on 2006-04-11
Last Modified: 2013-12-26
I need to add print function to my application. How do I do it?
Question by:sushmasriram

    Author Comment

    // 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
    LVL 18

    Accepted Solution


    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()


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now