WinJS Alternate Print Page RRS feed

  • Question

  • I am trying to print content using an alternate page using the example registration for the print task.

    var alternateLink = document.createElement("link");       

    alternateLink.setAttribute("id", "alternateContent");       

    alternateLink.setAttribute("rel", "alternate");       

    alternateLink.setAttribute("href", "ms-appx:///pages/cart/printQuote.html");       

    alternateLink.setAttribute("media", "print");

    The print contract will successfully print this page, but I have dynamic content that I would like this page to process/display and I am unable to get any JavaScript to process on this page to create/display the content.  So only the default values in the HTML page show up while printing.  What is the entry point needed on the alternate page so that I can have it process my data before returning HTML to the print request?



    Sunday, July 7, 2013 11:36 PM