Hi at all!
I create a PDF from my WebView with the following code:
and it works quite well, the Print Dialog shows up and im able to save the PDF file.
However, I would like to share the created PDF, is it possible to get the Filename? (or to specifiy a non-changeable Filename so that I know, where the file is? Thank you very much!
I create a PDF from my WebView with the following code:
B4X:
Dim jwv As JavaObject = WebCov 'WebView
Dim jPrintManager As JavaObject = jwv.RunMethodJO("getContext", Null).RunMethod("getSystemService", Array As Object("print"))
Dim jPrintAdapter As JavaObject = jwv .RunMethod("createPrintDocumentAdapter", Array As Object("NegativErgebnis_" & DateTime.GetDayOfMonth(DateTime.Now) & DateTime.GetMonth(DateTime.Now) & DateTime.GetYear(DateTime.Now) & ".pdf"))
Dim jobName As String = "Document"
jPrintManager.RunMethod("print", Array As Object(jobName, jPrintAdapter, Null))
and it works quite well, the Print Dialog shows up and im able to save the PDF file.
However, I would like to share the created PDF, is it possible to get the Filename? (or to specifiy a non-changeable Filename so that I know, where the file is? Thank you very much!