Solved

firefox and ie

Posted on 2012-03-25
3
334 Views
Last Modified: 2012-03-26
Hi
i have a report to print i m using php mysql
the first pages are fine and the last is strectched..
how i can fix the height that the graph in the report can be in the same page for firefox and ie
please find attached pdf and you will see the stretched page
that is my css for ie and for firefox
-->[b]for ie[/b]
<style type="text/css"  >
@media print {
input#BTNPRINT {
display: none;
}
}    
.table2 {
      position:relative;
        /*top:-50px;*/
 border:1px solid #000;
    
      font-family:arial,sans-serif;
      font-size:80%;
      height:100%;
      width:100%; 
}
body {
 
height:100%;
} 
#table4{
        border:3px solid #fff;
        position:relative;
        top:-5px;  
        
}
th{
	border:1px solid #000;
	border-collapse:collapse;
	padding:5px;
}	
#fn,#dp,#ar{width:110px;}
#fr,#to{width:90px;}
caption{
	
	font-size:100%;
	border:1px solid #000;
	border-bottom:none;
	padding:20px 0 0 0;
	text-align:left;
}
#td1{
	 
        background-color:#9cf;
         
}	

</style>

Open in new window

-->for firefox
<style type="text/css">
@media print {
input#BTNPRINT {
display: none;
}
}    
 
.table2 {
      position:relative;
        /*top:-50px;*/
 border:1px solid #000;
    
      font-family:arial,sans-serif;
      font-size:60%;
      height:100%;
      width:100%; 
}
body {
        height: 950px;
        width:850px;
        /* to centre page on screen*/
        margin-left: auto;
        margin-right: auto;
    } 
#table4{
        border:3px solid #fff;
        position:relative;
        top:-5px;  
        
}
th{
	border:1px solid #000;
	border-collapse:collapse;
	padding:5px;
}	
#fn,#dp,#ar{width:110px;}
#fr,#to{width:90px;}
caption{
	
	font-size:100%;
	border:1px solid #000;
	border-bottom:none;
	padding:20px 0 0 0;
	text-align:left;
}
#td1{
	 
        background-color:#9cf;
         
}	

</style>

Open in new window


any help please
CAMPION-The-Power-Behind-The-Wat.pdf
0
Comment
Question by:asaidi
  • 2
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37763846
In all the questions about printing from a browser, I have never seen anyone get a satisfactory answer.  Browsers are just not made for paper format printing.  The best solution has always been to create a PDF on the server where it's under your control and let them download that.
0
 

Author Comment

by:asaidi
ID: 37764890
hi DaveBaldwin
thank you for your confirmation..
and is there example of how to create a PDF on the server and let the users view it when they query the database
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37766898
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question