How do I get Print Ticket from default queue in Windows Store App RRS feed

  • Question

  • Hi,

    I am able to get Print Ticket from a WPF application in the following way.

    Stream userPrintTicket = LocalPrintServer.GetDefaultPrintQueue().UserPrintTicket.GetXmlStream(); XmlDocument ticket = newXmlDocument(); ticket.Load(userPrintTicket);

    Now, I want to get default queue print ticket from my Windows Store Application. How to get the same information

    from windows store app. Please suggest.

    If I add system.Printing assembly reference in Windows store application project, and build my solution, it throws following errors:

    Error 4 Cannot resolve Assembly or Windows Metadata file 'PresentationFramework.dll' in project
    Error 5 Type universe cannot resolve assembly: PresentationFramework, Version=, Culture=neutral




    • Edited by sansmile Sunday, July 6, 2014 5:26 AM
    Sunday, July 6, 2014 4:57 AM


  • Hi,

    As far as I know, there is no direct API in windows store app can get  Print Ticket from default queue. And system.Printing namespace cannot used in windows store app.

    • Edited by Jeffer Wang Tuesday, July 8, 2014 7:25 AM edit
    • Marked as answer by Anne Jing Monday, July 14, 2014 9:43 AM
    Tuesday, July 8, 2014 7:24 AM