mardi 7 février 2012 13:10
i have created a custom page layout on one of my site and also have created pages with the pagelayout. Now the need of the busness is to have a print functionality on tha pagelayout.
with lot of surfing on the net found some java scripts to have the print fucntionality but it only prints the text, as i have some rules( colored lines) in the page layout, i would want to print as the page is.
Toutes les réponses
mercredi 8 février 2012 09:05It depends on your styles, if you have written style in CSS (as a seperate file) it won't print if you have given inline for example <table border="1"> it will work.
mercredi 8 février 2012 14:12
First of all: Printing in a webpage is done easily, simply call window.print().
Now the issue you are expiriencing might be caused by the fact that some css elements are not printend. Those include:
So if the element you are trying to print is one of the above, it is obvious that these are not printed and there is no way to get them to print. What you can do is make a css file for printing only like this. (important is meda="print")
<link rel="stylesheet" type="text/css" href="print.css" media="print"></link>
If you would like to show lines in printing do not use background-images or background-colors but borders instead.
lundi 13 février 2012 05:49You need to create Pritable Style and whenever you clickd on print button you should assign Ptintable Style to your page and then execute
lundi 13 février 2012 12:49Hi You are very much right, i am using a separate css file. please can you tell me how can i proceed now. i want the page as it is.
mercredi 14 mars 2012 10:10Please can anybody respond , i fine if i dont get the styles but atleast i need to get the fonts as it is.