drifters086
Member
- Joined
- Mar 16, 2007
- Messages
- 10
- Programming Experience
- Beginner
hi guys,how do i make my current html button to asp button.
my intention is to create a button and once clicked on it,it will convert the 'report' in html to pdf file.
my main problem is i added reference of adobe distiller,but i dun noe what is the other codes needed.currently im using this trial converter which is not suppose to be in my project.
need ur help urgently. thanks in advance.
my codes:
my intention is to create a button and once clicked on it,it will convert the 'report' in html to pdf file.
my main problem is i added reference of adobe distiller,but i dun noe what is the other codes needed.currently im using this trial converter which is not suppose to be in my project.
need ur help urgently. thanks in advance.
my codes:
HTML:
<scripttype="text/javascript"language="JavaScript1.2">
function launchPrint(printURL,strOutPDFFile)
{
if (window.pdfProcessor == null)
{
try
{
window.pdfProcessor = new ActiveXObject("PdfOut.PdfCreator");
}
catch(e)
{
}
}
if (window.pdfProcessor != null)
{
try
{
var hh3 = window.pdfProcessor;
var version = hh3.getVersion;
hh3.html2PDF = printURL;
hh3.fileName = strOutPDFFile;
hh3.ViewPDF();
window.pdfProcessor = null;
}
catch (e)
{
}
}
}
</script>
<palign="center"><b><fontface="Verdana">Welcome
<br>
<br>
<br>
</font><fontface="Verdana">
<palign="left">
<inputtype="Button"value="Generate Report"onclick='launchPrint("http://localhost:3236/WebSite14/report.htm",
"C:/report_test2.pdf");'/></font> </p>
<p>
</p>
<p>
<fontface="Verdana"></font> </p>
</form>
</body>
</html>
Last edited by a moderator: