Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii ,

I am using wkhtmltopdf to convert aspx page to pdf files , all is working fine ,, but now i want to set header for my pages , which is again aspx page with coding in his codebehind to bind data.

Now the problem is when i use wkhtmltopd commands which allwaos me to set aspx page as a header for my document ,,, the problem is its taking so much time to create that file , and everytime during the process my header page gets called ..

So now what i am thinking is if there is any way to create html page based on my header aspx output, so only one copy will get created and i will set that as my header for my respective document.
Posted
Updated 9-Nov-14 22:17pm
v2

1 solution

Hi,

You can use Jquery Load Method

Example

XML
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("#div1").load("demo_test.aspx");
  });
});
</script>
</head>
<body>

<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>

</body>
</html>


Or simply Use UFrame

https://uframe.codeplex.com/[^]

Thanks

Siva Rm K
 
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