?
Solved

Printing dialog box

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

  dw_1.print()

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
  dw_1.print(TRUE)
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

Thanks
from
sn
0
Comment
Question by:sn8776
  • 2
2 Comments
 

Expert Comment

by:nagabalaji
ID: 2352317
Hai,

   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.

0
 

Accepted Solution

by:
nagabalaji earned 200 total points
ID: 2352328
Hai,

  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
                id_print_dw.Print()
      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.Print(TRUE)
                  
                   id_print_dw.Object.DataWindow.Print.Page.Range = ""
                  
END CHOOSE
0

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