Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Big, Bold & no space between characters while printing
Old 12-07-2008, 09:12 AM Big, Bold & no space between characters while printing
Junior Talker

Posts: 1
Name: Nayanram Rao
Trades: 0
Hi, This is a fee receipt page of a php school administration script. The problem is that while giving print command, The receipt prints in a whole A4 size page. The characters are getting printed one upon other in big bold letters, resulting the receipt unreadable. The scripts vendors are demanding very high fees to change it when i request them to help.
I have tried several methods like changing the font size of the browser and changing the html content of the page; but no use.
Other reports are printing fine.
Please help, I dont know php. I am pasting the code in the fee receipt page here. If any one can help me, I will be grateful to them.
Thanking you
Ram

<?PHP
session_start();
$module="fees";
include("../../db.php");
// If the session is null then redirect to Login page.
if($user_id=="") { ?>
<script>
parent.location.href="../../index.php";
</script> <?PHP
} else { // if the user is not admin then deny access
$priv_row=mysql_fetch_array(mysql_db_query($db_nam e,"select permission from privilege where empid='$priv_id' and module='$module' and br_id='$branch_id'"));
if($priv_row[0] < 1) Header("Location:../../noaccess.php");
}
include("../../colors.php");
include("../../lang/".$language."/".$module.".php");
include("../classsecfromid.php");
$res2=mysql_db_query($db_name,"select fee_payment_details.admno,fee_payment_details.paid _date,fee_types.name,fee_payment_details.amount,st udent.lastname,student.firstname,student.stu_class ,student.rollno,fee_payment_details.mon,fee_types. fee_type,fee_payment_details.fine from fee_payment_details,student,fee_types where student.admno=fee_payment_details.admno and student.br_id=fee_payment_details.br_id and fee_payment_details.br_id='$branch_id' and trans_id='$trans_id' and student.br_id=fee_types.br_id and fee_types.id=fee_payment_details.fee_type");
$arr=array("",$jan,$feb,$mar,$apr,$may,$jun,$jul,$ aug,$sep,$oct,$nov,$dec);
echo mysql_error();
$row=mysql_fetch_row($res2);
$schoolarr=array('schoolname','address1','address2 ','city','zipcode');
$scarr=array();
for($x=0;$x<sizeof($schoolarr);$x++) {
$schooldet=mysql_fetch_array(mysql_db_query($db_na me,"select setting_value from settings where setting_type='$schoolarr[$x]'"));
$scarr[$x]=$schooldet[0];
}
if($status!=1) {
include("../newheader.php");
include("../../lang/".$language."/".$module.".php"); ?>
<table><td><h3 align=left><font Style=FILTER:Shadow(color=silver,direction=125);He ight=5><?echo $sgstr52;?><b></h3</font></td></table><br><br>
<table align="center" width="100%" cellspacing="3" cellpadding="0" bordercolorlight="<? echo $light; ?>" bordercolordark="<? echo $toolight; ?>" bgcolor="<? echo $light; ?>" border="1">
<tr>
<td width="25%">
<p align="center"><a href="fees.php"><b><?echo $sgstr3;?></b></a></p>
</td>
<td width="25%">
<p align="center"><a href="fees_concession.php">
<b><?echo $sgstr4;?></b></a></p>
</td>
<td width="25%">
<p align="center"><a href="fee_payment_search.php"><font color='<?echo $visitedcolor;?>'><b><?echo $sgstr5;?></b></a></p>
</td>
<td width="25%">
<p align="center"><a href="feereport.php"><b><?echo $sgstr6;?></b></a></p>
</td>
</tr>
</table> <?PHP
} ?>
<table border="0" width="100%">
<tr><td>&nbsp;</td></tr>
<tr>
<td width="70%"><b><?echo $sgstr53;?> :</b> <?echo $trans_id;?></td>
<td width="30%"><b><?echo $sgstr54;?> :</b> <?echo $row[1];?></td>
</tr>
</table><br>
<table border="0" width="100%">
<tr><td align="center"><b> <?echo $scarr[0];?></b></td></tr>
<tr><td align="center"><b><?echo $scarr[3]."-".$scarr[4]?></b></td></tr>
</table><br>
<table border="0" width="100%">
<tr>
<td width="70%"><b><?echo $sgstr11;?> :</b> <?echo $row[0];?></td>
<td width="30%" align=left>
<b><?echo $sgstr27;?>:</b> <?echo $row[4]." ".$row[5];?>
</td>
nayanram is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2008, 12:10 PM Re: Big, Bold & no space between characters while printing
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add a print stylesheet
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Big, Bold & no space between characters while printing
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11091 seconds with 12 queries