Web page opens fine inside my WebView but it doesn't respond to print button that is present in webpage. When I click on that printbutton from desktop browser it opens the print interface of browser where I can save the file as PDF. I want to do that same, I have searched a lot but could not find any information, how I can do that?
Related
So you know how extensions work in Google, right? You click a button and it opens this small window within the internal webpage. I know how to make a button open an external window, but how do I make it work similarly to an extension. Basically, I'd like to have an html page where I can click a button and it'll open a small popup of another .html file within the first html page. So it would be this: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_popup but where it says "A Simple Popup!" it's an .html page.
This is the window that appears for printing in browser. This windows appear after opening on a PDF page in a browser. Also this window is next stop after clicking print button in a PDF file generated by FPDF. I am using FPDF and I believe you cant output or add other things aside from your data so Close window automatically after printing dialog closes solution is not valid for my problem. This solution basically add a JS script in the pop up window.
Is there a way to close this window after clicking on the PRINT BUTTON for PDF pages. For PDF generated by FPDF?
I'm developing a billing software. Can print a receipt but again click print button in print page then only printing
For Ex:
I'm clicking print button in HTML page,
next automatically open google chrome print window.
and again click print button,
Now printing, I want to be print directly. How to remove 2nd and 3rd step via programmatic.
How to rectify this problem anyone help.
<script type="text/javascript">
function printpage()
{
window.print();
}
</script>
I'm using above code this is output is redirected to google chrome print page.
And Again click print button then only printing,
I want to be print directly
For example am click print button in HTML page means automatically printing.
Cannot ask any inputs.
And cannot display any other dialog boxes.
Anyone help me please.
Explaining
am click print button in HTML page: Yes you will have to click on print button to request the browser to perform an action
next automatically open google chrome print window: Of course, it will be opened as printer/page settings will be asked even in ms word same thing happens while printing it asks for preferred printer & page
and again click print button: Finally you will be asked to submit your confirmation
Understand the whole process & please being on SO don't make a wish
you need to develop desktop based application that connect your web to your computer..
so your web cant request directly to your desktop program instead via browser...
you can use java applets to do that...
Right now, I am using webview to promote one of our website from within the app. It's linked to a PHP file which is rotating links based on geos. When i try to link to a google play app with market://link, it doesn't work.
I tried to then create a HTML page and then put a google play button for users to click on to open play store. That didn't work either. It just opens within the webview and show standard message, "this browser is no longer supproted"
Is there any way, i can resolve this without updating my app? Anything I can do in my HTML or PHP file I am linking from the webview?
I have a website, but I need a button which I want to print a specific .pdf file from my webpage database.
As an example, this site
has a print button, which gives you option to print some pdf files
Any idea how can I do that?
I've tried this one, but it's not working:
<a href="../Documents/ScrittoGraffito/Scritto_Customers/Nicolaides_Optical/Nicolaides_webpage/Shop1_Banner.pdf"
onclick="window.print()"/><p class="test">link</p></a>
That code will tell the browser to open the print dialog for the current page.
If you want to force the browser to print the linked pdf then that is not possible, as it will be completely controlled by the application or plugin that handles pdf documents.
EDIT;
Apparently it is possible, but you have to make use of a pdf toolkit.