locked
Load HTML string Into Webview control and print the content of webview

    Question

  • I am developing windows store apps for windows 8 using VS2012.I am using following as a Xaml:

        <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">      
                        <WebView x:Name="objWebview"   />
        </Grid>

    Following as a Backend VB:

    Dim htmlFragment As String
            htmlFragment ="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN''http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>"
            htmlFragment += "<html>"
            htmlFragment += "<body>"
            htmlFragment += " <table> "
            htmlFragment += "<p>karpit </p>"
            htmlFragment += "</table>"
            htmlFragment += "</body>"
            htmlFragment += "</html>"
            objWebview.NavigateToString(htmlFragment)

    Content is displayed in Webview But How to print:

    I don't know any thing about printing in metro apps.

    Saturday, March 29, 2014 9:46 AM

Answers

All replies