Gostaria imprimir um tela com tamanho específico, como devo fazer ? porque desse jeito ele imprime a tela inteira tamanho full, porém o formulário tem 8 linhas e 3 colunas (metade de uma folha A4)
segue abaixo meu código
--- Chame uma pagina imprimir.php, onde estou trazendo registro específico para impressao.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Imprimir </title>
</head>
<body onLoad="window.print()" >
<p>
<?php
include "conexao.php";
if($_GET['funcao'] == "imprimir"){
$id_paciente = $_GET['id_paciente'];
$sql = mysql_query("SELECT * FROM paciente WHERE id_paciente= $id_paciente");
while($linha = mysql_fetch_array($sql)){
$pega_identi = $linha ['id_paciente'];
$pega_nome = $linha ['nome'];
$pega_data_nasc = $linha['data_nascimento'];
$pega_idade = $linha['idade'];
$pega_sexo = $linha['sexo'];
$pega_civil = $linha['civil'];
$pega_profissao = $linha['profissao'];
$pega_peso = $linha['peso'];
$pega_altura = $linha['altura'];
$pega_medico = $linha['medico'];
$pega_convenio = $linha['convenio'];
$pega_end = $linha['endereco'];
$pega_cidade = $linha['cidade'];
$pega_estado = $linha['estado'];
$pega_fone = $linha['fone'];
}
?>
</p>
<table width="778" border="0">
<tr>
<td width="34"> </td>
<td width="687"> </td>
</tr>
</table>
<table width="779" border="0">
<tr>
<td width="92" class="style19 style20 style27 style42"> </td>
<td width="65" class="style19 style20 style27 style42">Nome: </td>
<td width="144"><span class="style19 style25 style20 style27">
<label>
<input name="nome" type="text" id="nome" maxlength="40" value="<?php echo $pega_nome?>"/>
</label>
</span></td>
</tr>
<tr>
<td width="92" class="style19 style20 style27 style42"> </td>
<td width="79" class="style19 style20 style27 style42">Data Nascimento: </td>
<td width="194"><span class="style19 style25 style20 style27">
<label>
<input name="data_nasc" type="text" id="data_nasc" maxlength="40" value="<?php echo $pega_data_nasc?>"/>
</label>
</span></td>
<td width="65" class="style19 style20 style27 style42">Idade: </td>
<td width="144"><span class="style19 style25 style20 style27">
<label>
<input name="idade" type="text" id="idade" maxlength="40" value="<?php echo $pega_idade?>" />
</label>
</span></td>
<td width="49" class="style19 style20 style27 style42">Sexo:</td>
<td width="213"><span class="style19 style25 style20 style27">
<label>
<select name="sexo" id="sexo" >
<option><?php echo $pega_sexo?> </option>
<option value="">Seleciona Sexo</option>
<option>Masculino</option>
<option>Feminino</option>
</select>
</label>
</span></td>
</tr>
<tr>
<td class="style19 style20 style27 style42"> </td>
<td class="style19 style20 style27 style42">Estado Civil:</td>
<td><span class="style19 style25 style20 style27">
<label>
<select name="civil" id="civil" >
<option><?php echo $pega_civil?> </option>
<option value="">Seleciona Estado Civil</option>
<option>Solteiro (a)</option>
<option>Casado (a)</option>
<option>Separado (a)</option>
<option>Viúvo (a)</option>
<option>Outros</option>
</select>
</label>
</span></td>
<td width="65" class="style19 style20 style27 style42">Profissão: </td>
<td width="144"><span class="style19 style25 style20 style27">
<label>
<input name="profissao" type="text" id="profissao" maxlength="40" value="<?php echo $pega_profissao?>" />
</label>
</span></td>
</tr>
<tr>
<td width="92" class="style19 style20 style27 style42"> </td>
<td width="79" class="style19 style20 style27 style42">Peso: </td>
<td width="194"><span class="style19 style25 style20 style27">
<label>
<input name="peso" type="text" id="peso" maxlength="40" value="<?php echo $pega_peso?>" />
</label>
</span></td>
<td width="65" class="style19 style20 style27 style42">Altura: </td>
<td width="144"><span class="style19 style25 style20 style27">
<label>
<input name="altura" type="text" id="altura" maxlength="40" value="<?php echo $pega_altura?>"/>
</label>
</span></td>
</tr>
<tr>
<td width="92" class="style19 style20 style27 style42"> </td>
<td width="79" class="style19 style20 style27 style42">Médico: </td>
<td width="194"><span class="style19 style25 style20 style27">
<label>
<input name="medico" type="text" id="medico" maxlength="40" value="<?php echo $pega_medico?>" />
</label>
</span></td>
<td width="65" class="style19 style20 style27 style42">Convênio: </td>
<td width="144"><span class="style19 style25 style20 style27">
<label>
<input name="convenio" type="text" id="convenio" maxlength="40" value="<?php echo $pega_convenio?>"/>
</label>
</span></td>
</tr>
<tr>
<td width="92" class="style19 style20 style27 style42"> </td>
<td width="79" class="style19 style20 style27 style42">Endereço: </td>
<td width="194"><span class="style19 style25 style20 style27">
<label>
<input name="end" type="text" id="end" maxlength="200" value="<?php echo $pega_end?>"/>
</label>
</span></td>
<td width="65" class="style19 style20 style27 style42">Cidade: </td>
<td width="144"><span class="style19 style25 style20 style27">
<label>
<input name="cidade" type="text" id="cidade" maxlength="40" value="<?php echo $pega_cidade?>" />
</label>
</span></td>
<td class="style19 style20 style27 style42">Estado: </td>
<td><span class="style19 style25 style20 style27">
<label>
<select name="estado" id="estado">
<option><?php echo $pega_estado?> </option>
<option value="">Seleciona Estado</option>
<option>AC</option>
<option>AL</option>
<option>AP</option>
<option>AM</option>
<option>BA</option>
<option>CE</option>
<option>DF</option>
<option>ES</option>
<option>GO</option>
<option>MA</option>
<option>MT</option>
<option>MS</option>
<option>MG</option>
<option>PA</option>
<option>PB</option>
<option>PR</option>
<option>PE</option>
<option>PI</option>
<option>RJ</option>
<option>RN</option>
<option>RS</option>
<option>RO</option>
<option>RR</option>
<option>SC</option>
<option>SE</option>
<option>SP</option>
<option>TO</option>
</select>
</label>
</span></td>
</tr>
<tr>
<td width="92" class="style19 style20 style27 style42"> </td>
<td width="79" class="style19 style20 style27 style42">Fone: </td>
<td width="194"><span class="style19 style25 style20 style27">
<label>
<input name="fone" type="text" id="fone" maxlength="40" value="<?php echo $pega_fone?>" />
</label>
</span></td>
</tr>
</table>
<?php
}
?>
</body>
</html>