February 2015
Intermediate to advanced
768 pages
26h 24m
English
Once you create a PrintTask inside the handler for PrintTaskRequested, you can override its default options via its Options property of type PrintTaskOptions. For example, the following addition changes the default page orientation to landscape instead of portrait:
void OnPrintTaskRequested(PrintManager sender, PrintTaskRequestedEventArgs args) { // This is invoked when the Print pane opens PrintTask task = args.Request.CreatePrintTask("Document Title", async (taskArgs) => { ... }); task.Options.Orientation = PrintOrientation.Landscape; }
Read now
Unlock full access