locked
printing, my apps printing functionality has stopped working RRS feed

  • Question

  • my app's printing functionality has stopped working

    I get

    No installed components were detected.

    Element is already the child of another element.

    when I call

    printDocument.SetPreviewPage(e.PageNumberpageLoadState.Page);
    


    Michael Stark MCP

    Monday, November 18, 2013 10:19 PM

Answers

  • Hi Michael,

    I think the reason is pageLoadState.Page is already in use and be the child of another element, therefore you could not set it as the child for the printDocument. You have to copy the page without parent node and set the page as the child for printDocument.

    Take a look at the sample from code center: http://code.msdn.microsoft.com/windowsapps/Print-Sample-c544cce6

    You will be able to find there is a method named:GetPrintPreviewPage() from BasePrintPage.cs, where you can find how to copy the page into the page list for print. Hope it will help you.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, November 19, 2013 7:59 AM
    Moderator