Solved

firefox and ie

Posted on 2012-03-25
3
310 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 82

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 82

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now