How do I print WebView content in a Windows Store App?

后端 未结 2 1966
天涯浪人
天涯浪人 2020-11-27 15:26

I have a Metro App and I am attempting to Print the Content of a WebView control. Using the MSDN Print Sample as my source ref

2条回答
  •  醉话见心
    2020-11-27 16:07

    Here's the basic printing syntax.

    PrintManager.PrintTaskRequested += printManager_PrintTaskRequested;
    void printManager_PrintTaskRequested(
        Windows.Graphics.Printing.PrintManager sender,
        Windows.Graphics.Printing.PrintTaskRequestedEventArgs args)
        {
            ...
        }
    

提交回复
热议问题