Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Print function

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

Author Comment

ID: 16432352
// 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

diasroshan earned 2000 total points
ID: 16433506

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

581 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