I use this code to print a webview
It worked fine. It shows the print preview
But at least I need an event for job finsh to clear the view after the printer finish and maybe a job cancel too
And I am not able to find out how to add that event .I read the Android printer docs ,fount printjob but not able to add the event
Sorry for my English and thanks for your time and help
code:
sub CreateWebPrintJob (wv As WebView)
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", Null)
Dim jobName As String = "Document"
'jPrintManager.RunMethod("print", Array As Object(jobName, jPrintAdapter, Null))
[B]jprintmanager.RunMethod("print", Array As Object(jobName, jPrintAdapter, CreatePrinterAttributes))[/B]
End Sub
But at least I need an event for job finsh to clear the view after the printer finish and maybe a job cancel too
And I am not able to find out how to add that event .I read the Android printer docs ,fount printjob but not able to add the event
Sorry for my English and thanks for your time and help