1

Bonjour,
J'explique brièvement le probleme <?php // comment mettre un include ici parce que je suis obligé d'en utiliser? $ma_variable se trouve dans my_include.php include("my_include_exe.php"); $content = " <page> <h1>Exemple d'utilisation</h1> ".$ma_variable." </page>"; require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php'); $html2pdf = new HTML2PDF('P','A4','fr'); $html2pdf->WriteHTML($content); $html2pdf->Output('exemple.pdf'); ?>
Merci

2

essais de mettre $ma_variable en global
et la le mec il le pécho par le bras et il lui dit '

3

ok je vais essayer... et je te fais signe si ça marche, merci smile

4

non ça ne marche pas sad
ça affiche: un tableau vide

Je te donne le code en entier
<table width="100%" height="100%" border="0"> <tr> <td>&nbsp;</td> <td id="style_title_td_top" width="39%"><?php echo $col1_name?>&nbsp;</td> <td id="style_title_td_top" width="35%"><?php echo $col2_name?>&nbsp;</td> <td id="style_title_td_top" width="13%"><?php echo $col3_name?>&nbsp;</td> <td id="style_title_td_top" width="13%"><?php echo $col4_name?>&nbsp;</td> </tr> <tr> <td id="style_title_td_left"><?php echo $line1_name?>&nbsp;</td> <td bgcolor="#B5DEFF"> <!-- GEN --> <?php include('./incexe/lf_11_gen.php'); ?> </td> <td bgcolor="#F0F0B4"> <!-- IND_GEN --> <?php //1: lié à un obj. gén. $choice=1; require('./incexe/lf_20_ind.php'); ?> </td> <td bgcolor="#F0F0B4"> <!-- MOV_IND_GEN --> <?php //1: lié à un obj. GEN. $chx=1; include('./incexe/lf_30_mov.php'); ?> </td> <td bgcolor="#FFBEA8"> <!-- ASS_GEN --> <?php //1: lié à un obj. gén. $choice=1; require('./incexe/lf_40_assump.php'); ?> </td> </tr> <tr> <td id="style_title_td_left"><?php echo $line2_name?>&nbsp;</td> <td bgcolor="#B5DEFF"> <!-- SPEC --> <?php include('./incexe/lf_12_Spec.php'); ?> </td> <td bgcolor="#F0F0B4"> <!-- IND_SPEC --> <?php //2: lié à un obj. spéc. $choice=2; require('./incexe/lf_20_ind.php'); ?> </td> <td bgcolor="#F0F0B4"> <!-- MOV_IND_SPEC --> <?php //2: lié à un obj. SPEC $chx=2; include('./incexe/lf_30_mov.php'); ?> </td> <td bgcolor="#FFBEA8"> <!-- ASS_SPEC --> <?php //2: lié à un obj. spéc. $choice=2; require('./incexe/lf_40_assump.php'); ?> </td> </tr> <tr> <td id="style_title_td_left"><?php echo $line3_name?>&nbsp;</td> <td bgcolor="#B5DEFF"> <!-- RES --> <?php include('./incexe/lf_13_res.php'); ?> </td> <td bgcolor="#F0F0B4"> <!-- IND_RES --> <?php //3: lié à un rés. $choice=3; require('./incexe/lf_20_ind.php'); ?> </td> <td bgcolor="#F0F0B4"> <!-- MOV_IND_RES --> <?php //3: lié à un RES $chx=3; include('./incexe/lf_30_mov.php'); ?> </td> <td bgcolor="#FFBEA8"> <!-- ASS_RES --> <?php //3: lié à un rés. $choice=3; require('./incexe/lf_40_assump.php'); ?> </td> </tr> <tr> <td id="style_title_td_left" rowspan="2"><?php echo $line4_name?>&nbsp;</td> <td rowspan="2" bgcolor="#B5DEFF"> <!-- ACT --> <?php include('./incexe/lf_14_act.php'); ?> </td> <td id="style_title_td_top" style="border:none; height:10px;" bgcolor="#D1FFD3"><?php echo $line4_col2_name?><!--soratra oe :MEANS--></td> <td rowspan="2" bgcolor="#F0F0B4"> <!-- MOV_IND_GEN --> <?php include('./incexe/lf_mov_15_mean.php'); ?> </td> <td rowspan="2" bgcolor="#FFBEA8"> <!-- ASS_ACT --> <?php //4: lié à un act. $choice=4; require('./incexe/lf_40_assump.php'); ?> </td> </tr> <tr> <td bgcolor="#D1FFD3"> <!-- MEAN --> <?php include('./incexe/lf_15_mean.php'); ?> </td> </tr> </table>
==============================================================================
et je voudrais exporter ce tableau en pdf avec HTML2PDF
donc j'ai ça <?php $pdf_gen=include('./incexe/lf_11_gen.php'); $pdf_ind=require('./incexe/lf_20_ind.php'); $pdf_mov=include('./incexe/lf_30_mov.php'); $pdf_ass=require('./incexe/lf_40_assump.php'); $pdf_spec=include('./incexe/lf_12_Spec.php'); $pdf_ass=require('./incexe/lf_40_assump.php'); $pdf_res=include('./incexe/lf_13_res.php'); $pdf_act=include('./incexe/lf_14_act.php'); $pdf_meansinclude('./incexe/lf_mov_15_mean.php'); $content='<page><table width="100%" height="100%" border="0"> <tr> <td>+</td> <td id="style_title_td_top" width="39%">'.$col1_name.'</td> <td id="style_title_td_top" width="35%">'.$col2_name.'</td> <td id="style_title_td_top" width="13%">'.$col3_name.'</td> <td id="style_title_td_top" width="13%">'.$col4_name.'</td> </tr> <tr> <td id="style_title_td_left">'.$line1_name.'</td> <td bgcolor="#B5DEFF> '.$pdf_gen.' </td> <td bgcolor="#F0F0B4"> '.$pdf_ind.' </td> <td bgcolor="#F0F0B4"> '.$pdf_mov.' </td> <td bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td id="style_title_td_left">'.$line2_name.'</td> <td bgcolor="#B5DEFF"> '.$pdf_spec.' </td> <td bgcolor="#F0F0B4"> '.$pdf_ind.' </td> <td bgcolor="#F0F0B4"> '.$pdf_mov.' </td> <td bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td id="style_title_td_left">'.$line3_name.'</td> <td bgcolor="#B5DEFF"> '.$pdf_res.' </td> <td bgcolor="#F0F0B4"> '.$pdf_ind.' </td> <td bgcolor="#F0F0B4"> '.$pdf_mov.' </td> <td bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td id="style_title_td_left" rowspan="2">'.$line4_name.'</td> <td rowspan="2" bgcolor="#B5DEFF"> '.$pdf_act.' </td> <td id="style_title_td_top" style="border:none; height:10px;" bgcolor="#D1FFD3">'.$line4_col2_name.'</td> <td rowspan="2" bgcolor="#F0F0B4"> '.$pdf_means.' </td> <td rowspan="2" bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td bgcolor="#D1FFD3"> '.$pdf_means.' </td> </tr> </table><page_footer>Generated by the designer of PLIK-MS</page_footer></page>'; require(dirname(__FILE__).'/html2pdf/html2pdf.class.php'); $html2pdf = new HTML2PDF('l','A4','fr','ISO-8859-15'); $html2pdf->WriteHTML($content); $html2pdf->Output("exportToPDF/vue.pdf"); ?> <?php $pdf_gen=include('./incexe/lf_11_gen.php'); $pdf_ind=require('./incexe/lf_20_ind.php'); $pdf_mov=include('./incexe/lf_30_mov.php'); $pdf_ass=require('./incexe/lf_40_assump.php'); $pdf_spec=include('./incexe/lf_12_Spec.php'); $pdf_ass=require('./incexe/lf_40_assump.php'); $pdf_res=include('./incexe/lf_13_res.php'); $pdf_act=include('./incexe/lf_14_act.php'); $pdf_meansinclude('./incexe/lf_mov_15_mean.php'); $content='<page><table width="100%" height="100%" border="0"> <tr> <td>+</td> <td id="style_title_td_top" width="39%">'.$col1_name.'</td> <td id="style_title_td_top" width="35%">'.$col2_name.'</td> <td id="style_title_td_top" width="13%">'.$col3_name.'</td> <td id="style_title_td_top" width="13%">'.$col4_name.'</td> </tr> <tr> <td id="style_title_td_left">'.$line1_name.'</td> <td bgcolor="#B5DEFF> '.$pdf_gen.' </td> <td bgcolor="#F0F0B4"> '.$pdf_ind.' </td> <td bgcolor="#F0F0B4"> '.$pdf_mov.' </td> <td bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td id="style_title_td_left">'.$line2_name.'</td> <td bgcolor="#B5DEFF"> '.$pdf_spec.' </td> <td bgcolor="#F0F0B4"> '.$pdf_ind.' </td> <td bgcolor="#F0F0B4"> '.$pdf_mov.' </td> <td bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td id="style_title_td_left">'.$line3_name.'</td> <td bgcolor="#B5DEFF"> '.$pdf_res.' </td> <td bgcolor="#F0F0B4"> '.$pdf_ind.' </td> <td bgcolor="#F0F0B4"> '.$pdf_mov.' </td> <td bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td id="style_title_td_left" rowspan="2">'.$line4_name.'</td> <td rowspan="2" bgcolor="#B5DEFF"> '.$pdf_act.' </td> <td id="style_title_td_top" style="border:none; height:10px;" bgcolor="#D1FFD3">'.$line4_col2_name.'</td> <td rowspan="2" bgcolor="#F0F0B4"> '.$pdf_means.' </td> <td rowspan="2" bgcolor="#FFBEA8"> '.$pdf_ass.' </td> </tr> <tr> <td bgcolor="#D1FFD3"> '.$pdf_means.' </td> </tr> </table><page_footer>Generated by the designer of PLIK-MS</page_footer></page>'; require(dirname(__FILE__).'/html2pdf/html2pdf.class.php'); $html2pdf = new HTML2PDF('l','A4','fr','ISO-8859-15'); $html2pdf->WriteHTML($content); $html2pdf->Output("exportToPDF/vue.pdf"); ?>

============Le message d'erreur s'affiche TCPDF ERROR: Some data has already been output, can't send PDF file

Que faire?

5

Le message est assez clair : ça veut dire que l'un de tes fichiers PHP affiche quelque chose à l'écran (avec "echo", ou "print", ou encore un bout de code HTML qui n'est pas entre les balises <?php ?>). Pour pouvoir utiliser HTML2PDF, il ne faut absolument rien afficher avant d'utiliser la méthode ->Output.
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

6

donc c'est sans espoir pour moi?

7

tu peu toujours essayer de capturer ce qui est écrit par tes include puis de vider le buffer

ob_start();
// tes include ici
$contents = ob_get_contents();
ob_end_clean();
et la le mec il le pécho par le bras et il lui dit '

8

Donc si j'ai bien conpris je mets mets <?php ob_start(); 02 $pdf_gen=include('./incexe/lf_11_gen.php'); 03 $pdf_ind=require('./incexe/lf_20_ind.php'); 04 $pdf_mov=include('./incexe/lf_30_mov.php'); 05 $pdf_ass=require('./incexe/lf_40_assump.php'); 06 $pdf_spec=include('./incexe/lf_12_Spec.php'); 07 $pdf_ass=require('./incexe/lf_40_assump.php'); 08 $pdf_res=include('./incexe/lf_13_res.php'); 09 $pdf_act=include('./incexe/lf_14_act.php'); 10 $pdf_meansinclude('./incexe/lf_mov_15_mean.php'); 11 $contents = ob_get_contents(); ob_end_clean();

Et comment je fais pour la table?
C'est cette table que je veux convertir en pdf?

9

Merci bcp c'est résolu <?php ob_start(); include('./incexe/lf_11_gen.php'); $pdf_gen = ob_get_contents(); ob_end_clean(); ... ?> etc... pour les autres includes au debuts.

Milles merci ça fait 1semaines que j'ai cherché la solution.

10

Dernières question comment mettre le statut du topics en résolu? lol^^ merci

11

on ne peut pas, c'est une fonctionnalité qui n'existe malheureusement pas sur ce forum sad

(on le fait parfois à la main, mais ici ça ne vaut pas trop le coup vu que ton problème était très spécifique)
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

12

Bonne année à tous!

Une dernière question, j'ai un tableau html dans un fieldset avec html2pdf
<?php //Lecture table.html $lecture=file_get_contents("exportToHTML/table.html"); $content='<page><page_header>MATRIX VIEW</page_header>'.$lecture.'</page>'; require(dirname(__FILE__).'/html2pdf/html2pdf.class.php'); $html2pdf = new HTML2PDF('l','A4','fr','ISO-8859-15'); $html2pdf->WriteHTML($content); $name=$_POST['name_pdf']; $html2pdf->Output($name.'.pdf','D'); ?>

Le résultat est bizzare c'est-à-dire que le tableau déborde et toutes les colonnes ne sont pas affiché
voilà le code html: <fieldset> <!--<legend><a style="color:#FFFFFF; text-decoration:blink;" href='javascript:popup("download-view.php")'>Export to pdf now</a></legend>--> <table width="100%" height="100%" border="0"> <tr> <td>&nbsp;</td> <td id="style_title_td_top" width="39%">Logic of intervention&nbsp;</td> <td id="style_title_td_top" width="35%">Indicators&nbsp;</td> <td id="style_title_td_top" width="13%">MoV&nbsp;</td> <td id="style_title_td_top" width="13%">Assumptions&nbsp;</td> </tr> <tr> <td id="style_title_td_left">General Objective&nbsp;</td> <td bgcolor="#B5DEFF"> <!-- GEN --> <a target=_blank id="linked" href="view_content.php?l=1&d=1"> <font id="gen_no">1-</font> Bring positive changes in lives of rural farmers (by improving availability, accessibility, usability and exchange of ag information/knowledge) in rural areas. </a><br> </td> <td bgcolor="#F0F0B4"> <!-- IND_GEN --> <a target=_blank id="linked" href="view_content.php?l=6&d=1"><font id="gen_no">1</font><font id="ind_no">1</font>-&nbsp;Number of people who benefit from the project (3500)</a><br> </td> <td bgcolor="#F0F0B4"> <!-- MOV_IND_GEN --> <a target="_blank" id="linked" href="view_content.php?l=7&d=14"><font id="ind_no">1</font><font id="mov_no">3</font>-&nbsp;eRails portal</a><br><a target="_blank" id="linked" href="view_content.php?l=7&d=12"><font id="ind_no">1</font><font id="mov_no">1</font>-&nbsp;Project activity/financial report</a><br><a target="_blank" id="linked" href="view_content.php?l=7&d=13"><font id="ind_no">1</font><font id="mov_no">2</font>-&nbsp;Dgroups discussion</a><br> </td> <td bgcolor="#FFBEA8"> <!-- ASS_GEN --> <a target=_blank id="linked" href="view_content.php?l=8&d=4"><font id="gen_no">1</font>-&nbsp;Zones of implementation are favorable to innovation</a><br> </td> </tr> <tr> <td id="style_title_td_left">Specific Objectives&nbsp;</td> <td bgcolor="#B5DEFF"> <!-- SPEC --> <a target=_blank id="linked" href="view_content.php?l=2&d=1"> <font id="gen_no">1</font><font id="spec_no">1-</font>&nbsp;Improve availability, accessibility, usability and exchange of relevant pieces of I/K among stakeholders in ARD</a><br><a target=_blank id="linked" href="view_content.php?l=2&d=3"> <font id="gen_no">1</font><font id="spec_no">2-</font>&nbsp;Improve communication and collaboration among stakeholders </a><br><a target=_blank id="linked" href="view_content.php?l=2&d=4"> <font id="gen_no">1</font><font id="spec_no">3-</font>&nbsp;Achieve good management and documentation of the project</a><br> </td> <td bgcolor="#F0F0B4"> <!-- IND_SPEC --> <a target=_blank id="linked" href="view_content.php?l=6&d=5"><font id="spec_no">1</font><font id="ind_no">5</font>-&nbsp;Number of group discussions/LT using the materials (21)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=6"><font id="spec_no">1</font><font id="ind_no">6</font>-&nbsp;Number of web pages put on the eRails (140)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=2"><font id="spec_no">2</font><font id="ind_no">2</font>-&nbsp;Number of scientists involved (140)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=3"><font id="spec_no">2</font><font id="ind_no">3</font>-&nbsp;Number of development/extension agents involved (140)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=4"><font id="spec_no">2</font><font id="ind_no">4</font>-&nbsp;Number of topics discussed on the dgroups (100)</a><br> </td> <td bgcolor="#F0F0B4"> <!-- MOV_IND_SPEC --> <a target="_blank" id="linked" href="view_content.php?l=7&d=14"><font id="ind_no">6</font><font id="mov_no">3</font>-&nbsp;eRails portal</a><br><a target="_blank" id="linked" href="view_content.php?l=7&d=12"><font id="ind_no">3</font><font id="mov_no">1</font>-&nbsp;Project activity/financial report</a><br><a target="_blank" id="linked" href="view_content.php?l=7&d=13"><font id="ind_no">4</font><font id="mov_no">2</font>-&nbsp;Dgroups discussion</a><br> </td> <td bgcolor="#FFBEA8"> <!-- ASS_SPEC --> <a target=_blank id="linked" href="view_content.php?l=8&d=5"><font id="spec_no">1</font>-&nbsp;Projet has enough support (both human, material and financial)</a><br> </td> </tr> <tr> <td id="style_title_td_left">Results&nbsp;</td> <td bgcolor="#B5DEFF"> <!-- RES --> <a target=_blank id="linked" href="view_content.php?l=3&d=7"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1-</font>&nbsp;Pieces of I/K related to AD/ARD are available, accessible, usable/applicable, shared/exchanged, viewed and trigger discussions</a><br> <a target=_blank id="linked" href="view_content.php?l=3&d=9"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">2-</font>&nbsp;Lessons learned from project are captured and shared</a><br> <a target=_blank id="linked" href="view_content.php?l=3&d=10"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3-</font>&nbsp;Projet implementation is well conducted and monitored</a><br> </td> <td bgcolor="#F0F0B4"> <!-- IND_RES --> <a target=_blank id="linked" href="view_content.php?l=6&d=7"><font id="res_no">1</font><font id="ind_no">7</font>-&nbsp;Number of videos translated in english (30), french (30), local language (30) ...</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=16"><font id="res_no">1</font><font id="ind_no">14</font>-&nbsp;Number of farmers experimenting something new related to what they learned in pieces of I/K (3500)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=15"><font id="res_no">1</font><font id="ind_no">13</font>-&nbsp;Number of pieces of IK usable/applicable/ considered relevant by farmers (30+21=51)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=14"><font id="res_no">1</font><font id="ind_no">12</font>-&nbsp;Number of pieces of IK understandable by farmers (30+21=51)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=13"><font id="res_no">1</font><font id="ind_no">11</font>-&nbsp;Number of pieces of IK dispatched among stakeholders (30+21=51)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=12"><font id="res_no">1</font><font id="ind_no">10</font>-&nbsp;Number of pieces of IK put online (30+21=51)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=11"><font id="res_no">1</font><font id="ind_no">9</font>-&nbsp;Number of pieces of IK translated in local language (30+21=51)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=10"><font id="res_no">1</font><font id="ind_no">8</font>-&nbsp;Number of pieces of IK translated in at least 3 languages (English, French, Portugese) (30)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=17"><font id="res_no">2</font><font id="ind_no">15</font>-&nbsp;Number of lessons learned/new experiences/discussions captured (21)</a><br><a target=_blank id="linked" href="view_content.php?l=6&d=18"><font id="res_no">2</font><font id="ind_no">16</font>-&nbsp;Number of lessons learned/new experiences/discussions published on the eRails (140)</a><br> </td> <td bgcolor="#F0F0B4"> <!-- MOV_IND_RES --> <a target="_blank" id="linked" href="view_content.php?l=7&d=13"><font id="ind_no">9</font><font id="mov_no">2</font>-&nbsp;Dgroups discussion</a><br><a target="_blank" id="linked" href="view_content.php?l=7&d=14"><font id="ind_no">16</font><font id="mov_no">3</font>-&nbsp;eRails portal</a><br><a target="_blank" id="linked" href="view_content.php?l=7&d=12"><font id="ind_no">16</font><font id="mov_no">1</font>-&nbsp;Project activity/financial report</a><br> </td> <td bgcolor="#FFBEA8"> <!-- ASS_RES --> <a target=_blank id="linked" href="view_content.php?l=8&d=1"><font id="res_no">3</font>-&nbsp;Enough expertise is available</a><br><a target=_blank id="linked" href="view_content.php?l=8&d=6"><font id="res_no">3</font>-&nbsp;Actors are result oriented</a><br> </td> </tr> <tr> <td id="style_title_td_left" rowspan="2">Activities&nbsp;</td> <td rowspan="2" bgcolor="#B5DEFF"> <!-- ACT --> <a target=_blank id="linked" href="view_content.php?l=4&d=33"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1-</font> A0- Capacity building for project (equipment &amp; HR)</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=22"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">2-</font> A1- Project inception workshop: to create awareness, communicate about the project’s objectives, expected results, organization and activities</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=23"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">3-</font> A2- Two (2) workshops at national level for discussion and fine tuning of methodology, organization, plannin and budget</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=24"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">4-</font> A3- Three (3) continental e-discussions using Dgroups platform</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=25"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">5-</font> A4- Preparation of thirty (30) video material: selection, translation in five (5) languages, multiplication on CD/DVD, shipment and (simultaneously) upload on the eRails Portal.</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=26"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">6-</font> A5- Organisation of four (4) important events per learning team for screening videos, to learn from what is done in Brazil, to exchange point of views, share local experiences and send feedback using </a><br><a target=_blank id="linked" href="view_content.php?l=4&d=27"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">7-</font> A6- Eight (8) field visits per country to exchange practical and experimental Information and knowledge, done with farmers or/and scientists. This will be an occasion to collect and capture informatio</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=28"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">8-</font> A7- Creation/update of twenty (20) eRails websites per country to share experiences, practices, information and knowledge from Africa.</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=29"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">2</font><font id="act_no">9-</font> A8- Following A6, production of three (3) AV files per country to be shared on the eRails. These files will contain discussions,interviews, lessons learned, scientific explanations … from the field.</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=30"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">10-</font> A9- Organization of two (2) Farmers workshops per country to sensitize and encourage good management of the material and equipment available, to practice and send feedback.</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=31"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">11-</font> A10- Organization of two (2) Scientific workshops per country to sensitize and encourage the publication of research results using accessible and affordable tools/mediums/materials for farmers and the</a><br><a target=_blank id="linked" href="view_content.php?l=4&d=32"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">12-</font> A11- Organization of closing workshop in each country making sure everything is well documented</a><br> </td> <td id="style_title_td_top" style="border:none; height:10px;" bgcolor="#D1FFD3">Means<!--soratra oe :MEANS--></td> <td rowspan="2" bgcolor="#F0F0B4"> <!-- MOV_IND_GEN --> <a target=_blank id="linked" href="view_content.php?l=7&d=12"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">12<font id="mov_no">1</font>-</font> &nbsp;Project activity/financial report</a><br><a target=_blank id="linked" href="view_content.php?l=7&d=13"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">12<font id="mov_no">2</font>-</font> &nbsp;Dgroups discussion</a><br><a target=_blank id="linked" href="view_content.php?l=7&d=14"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">12<font id="mov_no">3</font>-</font> &nbsp;eRails portal</a><br> </td> <td rowspan="2" bgcolor="#FFBEA8"> <!-- ASS_ACT --> <a target=_blank id="linked" href="view_content.php?l=8&d=2"><font id="act_no">1</font>-&nbsp;Stakeholders are willing to cooperate and collaborate</a><br><a target=_blank id="linked" href="view_content.php?l=8&d=7"><font id="act_no">1</font>-&nbsp;There are technical skills and good will</a><br><a target=_blank id="linked" href="view_content.php?l=8&d=3"><font id="act_no">3</font>-&nbsp;Project is understood by stakeholders</a><br> </td> </tr> <tr> <td bgcolor="#D1FFD3"> <!-- MEAN --> <a target=_blank id="linked" href="view_content.php?l=5&d=1"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">3-</font> &nbsp;Video projectors for public screening (7) [3500 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=2"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">3-</font> &nbsp;Audiovisual equipment for viewing videos (7x3) [10500 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=3"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">3-</font> &nbsp;Capturing equipement (7) [2800 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=14"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">3-</font> &nbsp;Stipend for animator/facilitator (2) [2000 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=15"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">5</font><font id="mean_no">3-</font> Translation of videos [15000 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=16"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">5</font><font id="mean_no">3-</font> Multiplication of CD/DVD (7x3x10) [420 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=17"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">5</font><font id="mean_no">3-</font> Shipment of CD/DVD (7x3) [11200 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=21"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">2</font><font id="act_no">9</font><font id="mean_no">3-</font> &nbsp;Production of new multimedia files (21) [2100 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=20"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">8</font><font id="mean_no">3-</font> Website creation/update on eRails (140) [7000 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=4"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">1</font><font id="mean_no">3-</font> &nbsp;Posters, leaflets, flyers for communication (7) [2100 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=6"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">2</font><font id="mean_no">3-</font> &nbsp;Project inception workshop (7) [2100 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=12"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">3</font><font id="mean_no">3-</font> &nbsp;Methodology &amp; fine tuning workshops (7x2) [4200 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=13"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">4</font><font id="mean_no">3-</font> &nbsp;Continental e-discussions (3) [6300 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=18"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">6</font><font id="mean_no">3-</font> Screening sessions (7x4x21) [1680 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=19"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">7</font><font id="mean_no">3-</font> &nbsp;Field visits (7x8) [7280 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=22"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">10</font><font id="mean_no">3-</font> Farmers annual meeting/workshop (7x2) [4200 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=23"> <font id="gen_no">1</font><font id="spec_no">0</font><font id="res_no">1</font><font id="act_no">11</font><font id="mean_no">3-</font> Scientists annual meetings (7x2) [4200 $]</a><br><a target=_blank id="linked" href="view_content.php?l=5&d=24"> <font id="gen_no">0</font><font id="spec_no">3</font><font id="res_no">3</font><font id="act_no">12</font><font id="mean_no">3-</font> &nbsp;Expenses for project closure (7) [3500 $]</a><br> </td> </tr> </table> </fieldset>
Le résultat en pdf
76hs
Je voudrai corriger ce problème,Merci d'avance

13

juste comme ca, le code HTML est assez crade et semble inutilement compliqué... avec pleins d'ID en double et autres...

sinon, pour rappel, il faut toujours préciser la largeur de tous les éléments BOX (div, table, th, td, ..)
Ancien pseudo : lolo

14

Oui oui dsl pour le code mais ce que j'ai oublier de mentionner c'est qu'il y a une feuille css qui vas avec ce code et surtout que c'est du code php mais qui est déjà traduit en html avec un script smile , çava être dur d'enlever tous les id et mais pour la largeur de tous les box je vais essayer, tu crois que (style="width: valeur en px ou %") suffira parce que j'ai vu ça quelque part? turtle