|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Dec 2006
Città: Lodi
Messaggi: 588
|
[HTML to DOC] Come scrivere correttamente file html per importazione in Word
Ciao a tutti.
Ho un file html che vorrei si vedesse così una volta importato in Word: ![]() Il file html che ho provato a creare contiene questo codice: Codice:
<html> <head> <title>Stampa fronte quadro</title> </head> <body background="images/oemb/cartiglio_elettrico.bmp"> <div style="position:absolute; top:300px; left:150px"> <img src="images/oemb/709CT_title.png" width="200px" heigth="37px"> <img src="images/oemb/MAG01_title.png" width="200px" heigth="37px"> <img src="images/oemb/MAG05_title.png" width="200px" heigth="37px"> <img src="images/oemb/TG705_title.png" width="200px" heigth="37px"> </div> <div style="position:absolute; top:140px; left:50px"> <img src="images/oemb/709CT.png" width="200px" heigth="630px"> <img src="images/oemb/MAG01.png" width="200px" heigth="630px"> <img src="images/oemb/MAG05.png" width="200px" heigth="630px"> <img src="images/oemb/TG705.png" width="200px" heigth="630px"> </div> <br><div style="position:right bottom">Pag. 1/2</div><br> </body> </html> Provando a sostituire i div con style con un semplice <center> e un paio di <br> la situazione migliora, ma le immagini non restano allineate in alto, ma in basso. Codice:
<html> <head> <title>Stampa fronte quadro</title> </head> <body background="images/oemb/cartiglio_elettrico.bmp"> <br><br> <center> <img src="images/oemb/709CT_title.png" width="200px" heigth="37px"> <img src="images/oemb/MAG01_title.png" width="200px" heigth="37px"> <img src="images/oemb/MAG05_title.png" width="200px" heigth="37px"> <img src="images/oemb/TG705_title.png" width="200px" heigth="37px"> <br> <img src="images/oemb/709CT.png" width="200px" heigth="630px"> <img src="images/oemb/MAG01.png" width="200px" heigth="630px"> <img src="images/oemb/MAG05.png" width="200px" heigth="630px"> <img src="images/oemb/TG705.png" width="200px" heigth="630px"> </center> <br><div style="position:right bottom">Pag. 1/2</div> </body> </html> ![]() Ora....come posso fare? Qualcuno di voi conosce una soluzione? BeLakor
__________________
HWBot - BeLakor Il mio PC: alimentatore LC POWER Arkangel 850Watt, scheda video Gigabyte GTX 970 4GB OC WF3, SSD Samsung 850 PRO, 2 Velociraptor 300 GB in raid 1, ASRock X99 OC Formula, 16GB G.Skill Ripjaws 4 Series DDR4-2400, I7 5820K Ultima modifica di BeLakor : 19-08-2010 alle 19:58. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Dec 2006
Città: Lodi
Messaggi: 588
|
Un altro problema che ho riscontrato è l'impostazione landscape / portrait che sembra essere differente tra OpenOffice e MS Office.
In OpenOffice è sufficiente inserire questo style nell'head: <head><style type="text/css">@page{size: landscape;}</style> Con MS Office invece sembra che l'impostazione venga ignorata. Impostando la pagina in orizzontale e salvando il file, sembra che @page non basti, ma MS Office voglia l'impostazione sulla sezione: @page WordSection1 {size:841.9pt 595.3pt; mso-page-orientation:landscape; margin:2.0cm 70.85pt 2.0cm 2.0cm; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} che però non è supportata da OpenOffice. Qualcuno sà dirmi come risolvere? BeLakor
__________________
HWBot - BeLakor Il mio PC: alimentatore LC POWER Arkangel 850Watt, scheda video Gigabyte GTX 970 4GB OC WF3, SSD Samsung 850 PRO, 2 Velociraptor 300 GB in raid 1, ASRock X99 OC Formula, 16GB G.Skill Ripjaws 4 Series DDR4-2400, I7 5820K |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 08:25.





















