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

.NET (Core and Framework)

 
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 
AnswerRe: Printing: HasMorePages ignored Pin
Luc Pattyn17-Nov-11 9:21
sitebuilderLuc Pattyn17-Nov-11 9:21 
I never had any problems with HasMorePages: when you call myPrintDocument.Print(), the system will fire a PrintPage event; your associated handler is where you must set PrintPageEventArgs.HasMorePages either true or false. As long as you don't set it false, the system will continue firing the PrintPage event. So you are not organizing the loop yourself, the system does it for you. You are responsible of course to provide the data that belongs to the page currently being printed, and normally the mechanism you need to achieve that is also what tells you whether more pages will be required or not.

FWIW: what I find more difficult to organize elegantly is the prediction of the number of pages the print job is going to require, this is the number you can provide to the PrintDialog in case you want to support partial page range printing. To get it right you either have to duplicate the paging logic, or somehow share it with the PrintPage handler itself.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

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 
AnswerRe: Entity Framework 4.1 Pin
Pete O'Hanlon11-Nov-11 4:26
mvePete O'Hanlon11-Nov-11 4:26 

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.