locked
Printing Experience in Metro App.

    Question

  • I have a question about print experience in Metro App.

     

    When I want to print a document in a Metro App support printing,

    I run Device->Select Printer driver and can see the below print experience.

    As I know,

    the Metro App show the experience, right ?

     

    1)

    Can the Metro App customize the experience ?

    for example,

    - Add or Delete Preview

    - Add or Delete Printer feature like copies, orientation, N-up, Booklet and so on?

     

    2) When clicking 'More Setting' in the experience, we can see basic or extensible experience which the printer driver support.

    Can the driver App add 'Print' button in 'More Setting' experience and print the document directly ?

     

     
    Thanks,
    Tuesday, December 06, 2011 1:33 AM

Answers

  •  

    Yes, that is the Metro printing experience that you have found.

    1) Preview can never be disabled- as in it will always be present on the dialog.  Though an app may not provide preview content when it owns the print layout (for HTML/CSS/JS apps this means the app has its own print template and does not respond to the preview page request, for XAML this means not responding to the GetPreviewPage event, and in native/D2D not responding to the MakePage request).  When no content is provided, the user will just experience a spinning beach ball in the preview section

    2) yes, apps can customize feature options on the experience such as copies, orientation, n-up, etc.  The developer should play around with the APIs in Windows.Graphics.Printing.Advanced.PrintTaskAdvancedOptions (http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.printing.advanced ). Note, even if a setting is removed from the print experience, it may also appear in the More Settings area (either in the Microsoft supplied More Settings or the IHV supplied More Settings).

    3) No, the user is expected to go back to the front page of the print experience to submit the job into the print system.  There is no way to add a functioning print button in the More Settings area.

    Thanks!
    -jon

     

    • Marked as answer by SeungWan Lee Friday, December 09, 2011 8:10 AM
    Wednesday, December 07, 2011 6:07 PM
  • The issue of print preview not updating when landscape is selected is a known bug.

     

    Thanks!

    -jon

    • Marked as answer by SeungWan Lee Friday, December 09, 2011 8:10 AM
    Thursday, December 08, 2011 7:05 PM

All replies

  •  

    Yes, that is the Metro printing experience that you have found.

    1) Preview can never be disabled- as in it will always be present on the dialog.  Though an app may not provide preview content when it owns the print layout (for HTML/CSS/JS apps this means the app has its own print template and does not respond to the preview page request, for XAML this means not responding to the GetPreviewPage event, and in native/D2D not responding to the MakePage request).  When no content is provided, the user will just experience a spinning beach ball in the preview section

    2) yes, apps can customize feature options on the experience such as copies, orientation, n-up, etc.  The developer should play around with the APIs in Windows.Graphics.Printing.Advanced.PrintTaskAdvancedOptions (http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.printing.advanced ). Note, even if a setting is removed from the print experience, it may also appear in the More Settings area (either in the Microsoft supplied More Settings or the IHV supplied More Settings).

    3) No, the user is expected to go back to the front page of the print experience to submit the job into the print system.  There is no way to add a functioning print button in the More Settings area.

    Thanks!
    -jon

     

    • Marked as answer by SeungWan Lee Friday, December 09, 2011 8:10 AM
    Wednesday, December 07, 2011 6:07 PM
  • Thanks for your answer.

    I have more questions about the preview which show from apps.

    Does  the preview show only portrait image ?

    For example,

    When I select an option such as  landscape or 2-up which selected from More Setting which support a printer driver,  the preview don't be changed and show only portrait image.

    Is it a bug of build 8102 version ?

    So, MS will fix or improve that the preview can show as an user select selected options.

     

    Sincerely,

    SeungWan Lee


    • Edited by SeungWan Lee Thursday, December 08, 2011 6:02 AM
    Thursday, December 08, 2011 6:00 AM
  • The issue of print preview not updating when landscape is selected is a known bug.

     

    Thanks!

    -jon

    • Marked as answer by SeungWan Lee Friday, December 09, 2011 8:10 AM
    Thursday, December 08, 2011 7:05 PM