WebSite X5Help Center

 
Roberto B.
Roberto B.
User

Immagine su stampa oggetto  it

Author: Roberto B.
Visited 573, Followers 1, Shared 0  

buon giorno a tutti

sulla pagina di stampa dell'oggetto, l'mmagine appare verticale e non orizzontale, cosa ho sbagliato?

qui di seguto le strighe che adopero per la stampa

questa sull'HAEAD 

<script>
function start_printK(k){ var kk=$(k).html();//Print DIV "esclusive" by KolAsim
var kkk="<style> div[id^='imCellStyleTitle_'] {display:none !important; } img {width:300px !important; } </style>";
var kkkk=kkk+kk; print_K = window.open("" , "printK" ,"status=1,width=3000px,height=3000px");
print_K.document.write(kkkk); print_K.focus(); print_K.print(); close_print_K();}
function close_print_K(){setTimeout(' print_K.close ();' ,2000);}
</script>

questa piè pagina dell'oggetto

<a style="font-size:22px;text-decoration:none; color:red" href="javascript: start_printK('#imCell_22')" alt="STAMPA K" title="STAMPA K">Stampa Ricetta</a>

allego immagine

roberto

Posted on the
4 ANSWERS - 1 USEFUL - 1 CORRECT
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... quel codice fu una mia invenzione; ...potrebbe essere cambiata la struttura della pagina su cui fu progettato...
... per poter valutare posta il LINK della pagina tipo...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... intanto puoi provare questa mia variante sostituendo il precedente <script>:

<script>
function start_printK(k){ var kk=$(k).html();//Print DIV "esclusive" by KolAsim
var kkk="<style> div[id^='imCellStyleTitle_'] {display:none !important; } img {width:300px !important;height:auto !important } </style>";
var kkkk=kkk+kk; print_K = window.open("" , "printK" ,"status=1,width=3000px,height=2000px");
print_K.document.write(kkkk); print_K.focus(); print_K.print(); close_print_K();}
function close_print_K(){setTimeout(' print_K.close ();' ,2000);}
</script>

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Roberto B.
Roberto B.
User
Author

Gentile KolAsim

buona domenica, ho sostituito o script , ora tutto apposto ti allego foto.

grazie, grazie per la tua sollecitudine e competenza nel risolvere i miei piccoli (grandi problemi)

roberto.

P.S.

avrai certamente capito che del codice html non ne capisco nulla, mi pui indicare cosa hai cambiato nella stringa 

Read more
Posted on the from Roberto B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

> var kkk ++ >>  height:auto !important     ... wink...

Read more
Posted on the from  ‪ KolAsim ‪ ‪