Sub CreateWebPrintJob (wv As WebView, output As String)
DIm jwv As JavaObject = wv
Dim jPrintManager As JavaObject = jwv.RunMethodJO("getContext", null).RunMethod("getSystemService", Array As Object("print"))
Dim jPrintAdapter As JavaObject = jwv .RunMethod("createPrintDocumentAdapter", Array As Object(output)) ' Changes here
dim jobName as String = "Document"
jPrintManager.RunMethod("print", Array As Object(jobName, jPrintAdapter, CreatePrinterAttributes ))
End Sub