Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends , I have a web page which contain one html file included as shown . .
HTML
<td>
                <div class="abcd">
                </div>
                <!--#include file="../includes/abc.htm" -->
            </td>


and one image of print having a javascript function as : javascript:Window.print().
It show me aal part in print preview except that included html ..
Please help me ... What to do..??
Posted
Comments
ZurdoDev 26-May-14 21:36pm    
The included file is commented out. Do browsers actually import the file doing it that way? That does not look like a good way to do it. My guess is only certain browsers will work this way.

Hi,

Can you please try the below code.


<asp:button onclick="myFunction()" xmlns:asp="#unknown">Print this page


function myFunction() {
window.print();
}


Hope it helps.

Regards,
Praneet
 
Share this answer
 
for this i include css and use make it visible and it work...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900