Solved

PageNums on PrintDialog

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Dbf export problem to a Visual Foxpro application 6 207
Printing problem 2 101
Delphi XE10 Round Image 2 154
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 70
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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