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

    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=4.0.0.0, Culture=neutral

    Thanks,

    san

     



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

Answers

  • 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.


    Tuesday, July 08, 2014 7:24 AM