Monday 15 August 2011

debugging - Windows Store App - Diagnose/Debug Printing Issue (PrintTaskCompletion.Failed) -



debugging - Windows Store App - Diagnose/Debug Printing Issue (PrintTaskCompletion.Failed) -

i'm trying debug/find documentation on how diagnose printing issue in windows store app i'm building. i've looked @ several examples of "how print in winrt/windows store apps" , have included mutual bit of error checking code in completed handler below:

//inside handler passed sec parameter createprinttask printtask.completed += async (s, e) => { //reset of our internal variables (code omitted) if (e.completion == printtaskcompletion.failed) { await execute.onuithreadasync(async () => { //log error , show friendly message user (code omitted) /*help - there else in parameters passed in completed event handler can help specify error? thing has completion property; can't seem find other useful data.*/ }); } };

my code getting within printtaskcompletion.failed bit, great error beingness handled, need know why it's failing seek debug issue. i've been stuck on while , haven't found useful posts/articles/books saying how more info error occurred can seek prepare issue.

if more code needed (a lot omitted brevity), please allow me know. , of course, please inquire clarifying questions.

thanks!

i figured out why error happening. had subtle bug leading no actual content getting added printdocumentsource in printdocument.addpages handler, causing error.

as fixed bug, began work expected.

thank, you, james, providing possible solution!

debugging printing windows-runtime windows-store-apps

No comments:

Post a Comment