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

.NET (Core and Framework)

 
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 
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 
Thanks for the reply. I deliberately didn't include the code snippets because I tried so many. Indeed, I've used it before - the event handler is the only place that ev.HasMorePages is in scope (as an arg), unless I pass it on (which, in desperation, I tried at one point). So - yes, it's in the right location.

Whilst awaiting feedback, I continue my online search and came up with what might be an explanation consistent with the observed problems:

e->HasMorePages results in another call to the printDocument handler. I can visualize this (apparently) erratic behavior as being the the result of this call. I'm going brain-dead, shortly, but know exactly what I plan to do in the AM, which can be summed up as declaring a static counter for my data loop, printing a single records worth of data to the form, and if more data is available, setting e->HasMorePages to true. Resetting the static counter only after the entire loops been handled.

Unintended recursion.

Again, though, thanks. It's good to ask about the obvious before one goes to the subtle.








"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
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 
AnswerRe: .net all about Pin
Richard MacCutchan12-Nov-11 0:16
mveRichard MacCutchan12-Nov-11 0:16 
QuestionEntity Framework 4.1 Pin
nv_thien11-Nov-11 3:35
nv_thien11-Nov-11 3:35 

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.