Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Printer friendly webpage?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bronee
Master

180 Posts

Posted - 10 Jun 2013 :  21:13:08  Show Profile  Visit bronee's Homepage  Reply with Quote
How do I most easy create a printer friendly webpage in dynamic html editor?

/Bronée

s.dav
Site Admin

Italy
3364 Posts

Posted - 12 Jun 2013 :  08:33:06  Show Profile  Visit s.dav's Homepage  Reply with Quote
I think the better approach is to keep the page simple

Regards, Davide
Go to Top of Page

bronee
Master

180 Posts

Posted - 02 Jul 2013 :  17:27:28  Show Profile  Visit bronee's Homepage  Reply with Quote
Or this way. I did put this in HEAD:

<script language="javascript">
function Clickheretoprint(divname, titel)
{
var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,";
disp_setting+="scrollbars=yes,width=650, height=600, left=100,top=25";
var content_vlue = document.getElementById(divname).innerHTML;
var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('<html><head><title>'+titel+'</title><style>');
docprint.document.write ('a.printlink {display: none;}');
docprint.document.write('</style></head><body onLoad="self.print()">');
docprint.document.write(content_vlue);
docprint.document.write('</body></html>');
docprint.document.close();
docprint.focus();
}
</script>
<style type="text/css">
a.printlink {float: right; display: block; margin-top: 30px;}
</style>

And just made HTML like this:

<ul id="menu">
<li><a class="printlink" href="javascript:void(0)" onClick="Clickheretoprint('ldheLabel3', 'Print vindue') ", >PRINT OPSKRIFT</a></li>
</ul>

Best regards, Lars
Go to Top of Page

bronee
Master

180 Posts

Posted - 02 Jul 2013 :  17:29:00  Show Profile  Visit bronee's Homepage  Reply with Quote
Check it here: http://larsbronee.dk/gastronomi.htm
Go to Top of Page

Jan van Londen
Super User

Netherlands
208 Posts

Posted - 03 Jul 2013 :  15:07:22  Show Profile  Visit Jan van Londen's Homepage  Reply with Quote
What about a PDF-file that the visitor can download to print?
A PDF-file can easily be made with something like PDF-creator.

( http://sourceforge.net/projects/pdfcreator/ )

Bye,
Londen.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000