Solved

PageNums on PrintDialog

Posted on 1998-06-09
2
181 Views
Last Modified: 2010-04-04
If I put the poPageNums option ON for the PrintDialog, it doesn't enable the corresponding entry fields. Is it a bug?
0
Comment
Question by:skanade
2 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 30 total points
ID: 1351811
with PrintDialog1 do
begin
  Options:=[poPageNums];
  MinPage:=1;
  MaxPage;=99;
end;
0
 

Author Comment

by:skanade
ID: 1351812
Ronit,

If I do that, the dialog doesn't come up. I did some experimentation and found that to let the dialog come up I just need to enter some number in maxpage. But, again that is not the behavior I want. I don't know how many pages are in my huge printout and with the above approach, the ALL text becomes "All 99 pages?" which I don't want.

Finally, I found that if I just set maxpage to -1, it leaves the ALL text untouched and also enables the entry of page numbers as in Windows 3.1. So, this is the solution I will use.

However, I want to thank you for pointing me in the right direction.

Sanjay
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

15 Experts available now in Live!

Get 1:1 Help Now