Printing dialog box

Posted on 2000-01-04
Medium Priority
Last Modified: 2006-11-17
I set my data windows to "prompt before printing", and at a
print button, set a line of script.


I run it, the print dialog appear, but when I clicked at the cancel button, it still prints the data in that data window.

I also tried with
it's still the same.

Anybody encounter this problem b4, please help me on this.
I am using PB 6.0 EE, pltform nt4 workstation, DB is informix

Question by:sn8776
  • 2

Expert Comment

ID: 2352317

   The Cancel button is firing before u clicking. Because data transfer between datawindow and printer is fast. If the data is 10s or 100s of pages then u will see the benefit of cancel button.

The other alternative solution is give delay between pages in Datawindow->Printpage event.


Accepted Solution

nagabalaji earned 200 total points
ID: 2352328

  Use alternative. Give the facility to choose the pages which they want to print .

dw_1.Object.datawindow.Print.range = <String>

U can make the screen like microsoft printing selected range of pages.

Sample code

1 = Print all pages
2 = For selected pages.

String value is like 1,2-5; 1,3,5-9; etc.,

CHOOSE CASE ii_checked
      CASE 1
      CASE 2

      CASE 3
                String ls_page_range
                   ls_page_range = sle_1.Text
                   IF NOT isnull(ls_page_range) AND Len(ls_page_range) > 0 THEN  &
                        id_print_dw.Object.DataWindow.Print.Page.Range = ls_page_range
                   id_print_dw.Object.DataWindow.Print.Page.Range = ""

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

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

Washington based MSP turned to OnPage to solve their needs for after-hours alerting when customers’ technologies failed. In this post  see how DNS benefited from rolling out OnPage as a solution: -Preserve their SLAs -Improve response time by…
Let us take a look at the scenario, you have a database that is corrupt and you run the ESEUTIL command only to find you are unable to repair it. How do you now get the data back?
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Suggested Courses
Course of the Month4 days, 11 hours left to enroll

601 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