Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

PageNums on PrintDialog

If I put the poPageNums option ON for the PrintDialog, it doesn't enable the corresponding entry fields. Is it a bug?
0
skanade
Asked:
skanade
1 Solution
 
ronit051397Commented:
with PrintDialog1 do
begin
  Options:=[poPageNums];
  MinPage:=1;
  MaxPage;=99;
end;
0
 
skanadeAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now