Page 1 of 1

Open Web Browser On Android Device

Posted: Fri Feb 09, 2018 10:59 am
by Googie85
I am trying to open an .html file for the purpose of printing.

Any help would be greatly appreciated!!!

Many Thanks,

Googie.

Re: Open Web Browser On Android Device

Posted: Fri Feb 09, 2018 11:23 am
by LiveCode_Panos
Hi Googie,

Maybe this will help:

viewtopic.php?f=53&t=27630

Panos
--

Re: Open Web Browser On Android Device

Posted: Fri Feb 09, 2018 11:25 am
by Klaus
Hi Googie,

if the html file is in the users docs folder, use this (with a browser widget)

Code: Select all

...
put "file://" & speciallfolderpath("documents") & "/name of your html file here.html" into tURL

## The important step, urls don't like SPACES:
replace " " with "%20" in tURL
set the url of widget "your browser" to tURL
...
Best

Klaus

Re: Open Web Browser On Android Device

Posted: Fri Feb 09, 2018 11:20 pm
by Googie85
I'm still unsure as to how to print the .html...

Please help!!

Google.

Re: Open Web Browser On Android Device

Posted: Fri Feb 09, 2018 11:26 pm
by Klaus
According to the dictionary, "print" is notsupported on Android.
At least it is not listed under "Supported Platforms" for that entry.

Re: Open Web Browser On Android Device

Posted: Tue Feb 13, 2018 1:53 pm
by MaxV
Try with:

Code: Select all

launch url ("print://" & urlencode(specialfolderpath("documents") & "/name of your html file here.html")) 

Re: Open Web Browser On Android Device

Posted: Tue Aug 21, 2018 12:12 pm
by ezraf1309
.html printing is not available on android as far as I know.

Re: Open Web Browser On Android Device

Posted: Tue Aug 21, 2018 2:31 pm
by AndyP
In native it is

November 7-8, 2018.
Printing HTML documents
Printing out content beyond a simple photo on Android requires composing text and graphics in a print document. The Android framework provides a way to use HTML to compose a document and print it with a minimum of code.


In Android 4.4 (API level 19), the WebView class has been updated to enable printing HTML content. ml-docs

https://developer.android.com/training/ ... /html-docs

It may need an enhancement request to allow this in the browser widget?