Print pdf file displayed inside iframe to printer


Dan Lowe
26/4/2016 6:52 am
HOME ยป Web Development

How can I print a pdf file displayed inside iframe directly to printer from Firefox/IE?

The following code works in chrome/opera well,but not in IE and Firefox.

function printIframe(objFrame) {
    objFrame.focus();
    objFrame.print();
}
<iframe  id="pdfreport"
name="pdfreport" src="1.pdf" width="100%;" height="80%">
</iframe>
<button type="button" style="float: right" name="btnprint"
onclick='printIframe(pdfreport);'>Print</button>


Related to : Print pdf file displayed inside iframe to printer
Print pdf file displayed inside iframe to printer
26/4/2016 6:52 am by Dan Lowe in Web Development

How can I print a pdf file displayed inside iframe directly to printer from Firefox/IE?

The following code works in chrome/opera well,but not in IE and Firefox.

chrome frame inside an iframe not displayed in Win XP
by Dennizzz in Web Development

If a page which has chrome frame enabled is loaded within an iframe, it does not work only on IE8's that belong to Windows XP.


Any ideas?


Thanks.


PHP: Check if page is displayed inside iframe?
by mysql in Web Development

I would like to use PHP to check if the page is being loaded in an iframe. Preferably, but not required, I would like to have the parent's url when applicable. Thank you.


Cannot view xps file inside iFrame. If iFrame is expanded than file shows up
by besn in Web Development

This only happens on windows XP and works fine on Windows 7.


In our application we display many different file types. One them is xps. If iFrame window is big enough it displays fine but I make it smaller than I get the followin error:


Event Type: Error


Event S


Print pdf inside iframe?
by Keeper in Web Development

I have a question regarding auto printing a pdf inside a iframe
Can it be done?
My code/html looks like this at the moment. But i haven
Corresponding links to another file to be displayed in iframe
by javascript in Web Development

Hi,
Can someone give ideas on how should I do this task?
Ive made a simple timeline using <td> and when I mouseover the cell I want it to link to another list of something and it will corresponding to it.
Eg..in my timeline say
cellwidth1->keyFrame1
cellwidth2->k
How to print a specific file to the printer/network printer
by Czech Republic in Web Development

I want to print data which is entered in rich textbox. Also I want to set top,left,right and bottom margin of file........
Whole pdf-file is not displayed through iframe in Mobile Safari on iPad 1/2
by jbulow in Web Development

I have faced a pretty strange issue. I'm trying to display pdf files using iframe. Little documents, consisting of 1-2 pages, are displayed correctly. But when it comes to documents consisting of for example 5 "heavy" pages, the iframe doesn't display the whole document - the document is cropped


I want to print a report and programmatically set the printer name and Print to File
by lockdown571 in Web Development

How can I print a report and at the same time programatically set the printer name and 'Print to File' option and set the path of this option?

Print into XPS-file and then print it to printer
by cthulhup in Web Development

I've tried to print content of RichTextBox and there are too many bugs if I print to printer.
But when I'm printing to XPS-file (through XPS-printer in windows) and then printing this file to printer all is ok.


So can I do all these things programmatically?


Here is my




HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .