Solved

PageNums on PrintDialog

Posted on 1998-06-09
2
183 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

803 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