Click here to Skip to main content
15,912,204 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralMessage Removed Pin
18-Nov-11 4:37
professionalN_tro_P18-Nov-11 4:37 
AnswerRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn18-Nov-11 4:45
sitebuilderLuc Pattyn18-Nov-11 4:45 
GeneralMessage Removed Pin
18-Nov-11 5:21
professionalN_tro_P18-Nov-11 5:21 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn18-Nov-11 5:24
sitebuilderLuc Pattyn18-Nov-11 5:24 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Addy Tas7-Dec-11 11:02
Addy Tas7-Dec-11 11:02 
GeneralMessage Removed Pin
12-Dec-11 4:10
professionalN_tro_P12-Dec-11 4:10 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Addy Tas12-Dec-11 9:45
Addy Tas12-Dec-11 9:45 
QuestionPrinting: HasMorePages ignored Pin
W Balboos, GHB17-Nov-11 6:48
W Balboos, GHB17-Nov-11 6:48 
Hi, all:

Does anyone know why the HasMorePages property seems to be ignored, or more correctly, is erratic an finicky.
Either the pages all print on one sheet or loop through pages-by-the-hundred (often each one a compound page).

Assuming the problem is my own understanding, I went to my own code (where I've used it successfully in the past), and checked with the MSDN site literature. This followed by various permutations as to where in the print routine it is called. At this point, I feel as a hamster on a treadmill.


  • I've done the loop inside the PrintDocument_PrintPage(...) method.
  • I've taken the print loop outside, wrapping the PrintDocument->Print() call (passing a 'done' flag to control HasMorePages).


Various permutations, some of which appear to ignore the code flow when followed in the debugger.

What I'm hoping for is either a description of how the methods and properties interact that is (mentally) consistent, or a link or two referencing such explanations.

As an axillary question, what would have been so difficult about creating a New-Page method instead of this looney-tune flag?

TECH NOTES: C++ in VS2003 (== .NET 1.1 because they won't upgrade).

Thanks, in advance.

Balboos







"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

AnswerRe: Printing: HasMorePages ignored Pin
Richard MacCutchan17-Nov-11 8:38
mveRichard MacCutchan17-Nov-11 8:38 
GeneralRe: Printing: HasMorePages ignored Pin
W Balboos, GHB17-Nov-11 8:48
W Balboos, GHB17-Nov-11 8:48 
AnswerRe: Printing: HasMorePages ignored Pin
Luc Pattyn17-Nov-11 9:21
sitebuilderLuc Pattyn17-Nov-11 9:21 
GeneralRe: Printing: HasMorePages ignored Pin
W Balboos, GHB17-Nov-11 9:48
W Balboos, GHB17-Nov-11 9:48 
AnswerRe: Printing: HasMorePages ignored Pin
Luc Pattyn17-Nov-11 9:59
sitebuilderLuc Pattyn17-Nov-11 9:59 
Question64 bit vs. 32 bit for developers... Pin
Jun Du17-Nov-11 3:44
Jun Du17-Nov-11 3:44 
AnswerRe: 64 bit vs. 32 bit for developers... Pin
Richard MacCutchan17-Nov-11 6:58
mveRichard MacCutchan17-Nov-11 6:58 
AnswerRe: 64 bit vs. 32 bit for developers... Pin
Luc Pattyn17-Nov-11 9:27
sitebuilderLuc Pattyn17-Nov-11 9:27 
AnswerRe: 64 bit vs. 32 bit for developers... Pin
David Skelly17-Nov-11 22:33
David Skelly17-Nov-11 22:33 
GeneralRe: 64 bit vs. 32 bit for developers... Pin
Albert Holguin21-Nov-11 8:02
professionalAlbert Holguin21-Nov-11 8:02 
Questionintegrate the report manager to asp.net project Pin
shijuse15-Nov-11 18:18
professionalshijuse15-Nov-11 18:18 
AnswerRe: integrate the report manager to asp.net project Pin
Abhinav S15-Nov-11 18:30
Abhinav S15-Nov-11 18:30 
GeneralRe: integrate the report manager to asp.net project Pin
shijuse16-Nov-11 17:06
professionalshijuse16-Nov-11 17:06 
Question.NET4+.NET2 Pin
columbos1492713-Nov-11 22:26
columbos1492713-Nov-11 22:26 
AnswerRe: .NET4+.NET2 Pin
Not Active13-Nov-11 22:46
mentorNot Active13-Nov-11 22:46 
AnswerRe: .NET4+.NET2 Pin
rajeevcapgeminiindia17-Nov-11 19:32
rajeevcapgeminiindia17-Nov-11 19:32 
Question.net all about Pin
syedkhaleel12-Nov-11 0:01
syedkhaleel12-Nov-11 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.