473,416 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Print issue in IE 6, not IE 7

219 100+
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I print the elements look bigger when I print from IE 6

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Online Performance Evaluation</title> <link href="oneColElsCtrHdr.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="print.css" type="text/css" media="print" /> <style type="text/css"> <!-- html { margin: 0; border: 1px solid red; } body { margin: 0; border: 1px solid green; } .style1 { font-size: x-small; } .style2 { font-size: large; color: #FFFF99; } .style13 {font-size: small} #mainContent{margin:0 20px;} #print_employee,#print_details,#eval_details{font-size:x-small; padding:10px;} .oneColElsCtrHdr #container{border:none;} .oneColElsCtrHdr #container #mainContent #perf_form .para { background-color: #CCCCCC; border: 1px solid #000000; font-size:x-small; padding:2px; } .oneColElsCtrHdr .reqFields { background-color: #FFFFCC; border: 1px solid #999999; padding: 2px; } .style17 { color: #CCCCCC; font-family: "Arial Rounded MT Bold"; font-size: large; } .style19 {font-size: x-small; font-weight: bold; } .style20 {font-size: x-small; font-style: italic; } .style21 { color: #FFFFFF; } .style23 {font-size: small; font-weight: bold; } #mainContent{color:#000;} #links .left{float:left;} #links .right{float:right} .clear{clear:both;} hr{background-color: #666;height:2px;} --> </style> </head> <body class="oneColElsCtrHdr"> <cfquery name="retrieveEval" datasource="Performance_Eval" dbtype="ODBC"> Select a.*,b.* from eval a,employee b where id='#URL.id#' and a.emp_id=b.emp_id </cfquery> <cfscript> function returnValue(value) { switch(value){ case 1:{ conv_value = "N/A"; break; } case 2:{ conv_value = "Unsatisfactory"; break; } case 3:{ conv_value = "Needs Improvement"; break; } case 4:{ conv_value = "Achieves"; break; } case 5:{ conv_value = "Excels"; break; } default:{ conv_value = ""; break; } } //end switch return conv_value; } </cfscript> <cfscript> function displayEval(){ WriteOutput("<i><h3>Performance Evaluation Details</h3></i> <div id='eval_details'> <p><u>Evaluation Details</u></p> <b>Date Submitted: </b>#DateFormat(date_submitted,'mm/dd/yyyy')# #TimeFormat(date_submitted,'HH:mm')#<br /> <b>Evalution Signed: </b>#iif(eval_complete eq 1,DE('Yes'),DE('No'))# </div> <br /> <div id='print_employee' > <p><u>Employee Section</u></p> <b>Employee ID:</b> #emp_id# <br /> <b>Last Name:</b> #last_name#<br /> <b>First Name:</b> #first_name#<br /> <b>Job Code:</b> #job_code#<br /> <b>Completed By:</b> #comp_by#<br /> <b>Performance Period:</b> #DateFormat(beg_perf_period,'mm/dd/yyyy')# - #DateFormat(end_perf_period,'mm/dd/yyyy')#<br /> </div> <br /> <div id='print_details'> <p><u>Annual Basic Requirements</u></p> <b>Certification:</b> #iif(cert_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Compliance/Privacy Training:</b> #iif(compliance_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Confidentiality Statement:</b> #iif(confident_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Conflict of Interest:</b> #iif(conflict_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>CPR/ACLS Validation:</b> #iif(cpr_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Education Record:</b> #iif(education_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Professional License:</b> #iif(license_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>EOC Test Results:</b> #iif(eoc_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Validation of Annual PPD:</b> #iif(ppd_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <hr /> <p><u>Employee Performance</u></p> <b>Job Responsibility ##1:</b> #job_resp_1#<br /> <b>Job Responsibility ##1 Response:</b>#returnValue(job_resp_1_val)#<br /> <cfif job_resp_2 neq ''> <b>Job Responsibility ##2:</b> #job_resp_2#<br /> <b>Job Responsibility ##2 Response:</b> #returnValue(job_resp_2_val)#<br /> </cfif> <cfif job_resp_3 neq ''> <b>Job Responsibility ##3:</b> #job_resp_3#<br /> <b>Job Responsibility ##3 Response:</b> #returnValue(job_resp_3_val)#<br /> </cfif> <cfif job_resp_4 neq ''> <b>Job Responsibility ##4:</b> #job_resp_4#<br /> <b>Job Responsibility ##4 Response:</b> #returnValue(job_resp_4_val)#<br /> </cfif> <cfif job_resp_5 neq ''> <b>Job Responsibility ##5:</b> #job_resp_5#<br /> <b>Job Responsibility ##5 Response:</b> #returnValue(job_resp_5_val)#<br /> </cfif> <cfif job_resp_6 neq ''> <b>Job Responsibility ##6:</b> #job_resp_6#<br /> <b>Job Responsibility ##6 Response:</b> #returnValue(job_resp_6_val)#<br /> </cfif> <cfif job_resp_7 neq ''> <b>Job Responsibility ##7:</b> #job_resp_7#<br /> <b>Job Responsibility ##7 Response:</b> #returnValue(job_resp_7_val)#<br /> </cfif> <cfif competency_link neq ''> <b>Competency Link:</b> #iif(competency_link eq '',DE('None'),DE("<a href='#competency_link#'>#competency_link#</a>"))#<br /> </cfif> <hr /> <b>Current Year Goal ##1:</b> #curr_goals_1#<br /> <b>Current Year Goal ##1 Response:</b>#returnValue(curr_goals_1_val)#<br /> <cfif curr_goals_2 neq ''> <b>Current Year Goal ##2:</b> #curr_goals_2#<br /> <b>Current Year Goal ##2 Response:</b> #returnValue(curr_goals_2_val)#<br /> </cfif> <cfif curr_goals_3 neq ''> <b>Current Year Goal ##3:</b> #curr_goals_3#<br /> <b>Current Year Goal ##3 Response:</b> #returnValue(curr_goals_3_val)#<br /> </cfif> <cfif curr_goals_4 neq ''> <b>Current Year Goal ##4:</b> #curr_goals_4#<br /> <b>Current Year Goal ##4 Response:</b> #returnValue(curr_goals_4_val)#<br /> </cfif> <cfif curr_goals_5 neq ''> <b>Current Year Goal ##5:</b> #curr_goals_5#<br /> <b>Current Year Goal ##5 Response:</b> #returnValue(curr_goals_5_val)#<br /> </cfif> <b>Current Year Goals Comment: </b>#curr_year_goals_comm#<br /> <hr /> <b>Quality Improvement:</b> #returnValue(qual_improvement)#<br /> <b>Comment: </b>#qual_improve_comm#<br /> <br /> <b>Use of Resources:</b> #returnValue(use_resources)#<br /> <b>Comment: </b>#use_resources_comm#<br /> <br /> <b>Cultural Diversity:</b> #returnValue(cult_diversity)#<br /> <b>Comment: </b>#cult_diversity_comm#<br /> <br /> <b>Communications:</b> #returnValue(communications)#<br /> <b>Comment: </b>#communications_comm#<br /> <br /> <b>Teamwork:</b> #returnValue(teamwork)#<br /> <b>Comment: </b>#teamwork_comm#<br /> <br /> <b>Patient Satisfaction:</b> #returnValue(patient_satisfaction)#<br /> <br /> <b>Customer Service:</b> #returnValue(rating_pat_svc)#<br /> <b>Comment: </b>#rating_pat_svc_comm#<br /> <hr /> <p><u>Documentation Requirements</u></p> <b>HealthAlliance Policies:</b> #iif(ha_policies eq 1,DE('yes'),DE('no'))#<br /> <b>Attendance:</b> #iif(attendance eq 1,DE('yes'),DE('no'))#<br /> <b>Dress Appearance:</b> #iif(dress_appearance eq 1,DE('yes'),DE('no'))#<br /> <b>Comments:</b> #emp_doc_comm#<br /> <hr /> <p><u>Overall Performance</u></p> <b>Overall Performance: </b>#returnValue(overall_perf)#<br /> <b>Performance Improvement Plan Link: </b>#iif(perf_imp_plan_link eq '',DE('None'),DE("<a href='#perf_imp_plan_link#'>#perf_imp_plan_link#</a>"))#<br /> <b>Summary:</b> #summary#<br /> <hr /> <p><u>Development Goals for next review period</u></p> <b>Development Goals ##1: </b> #dev_goals_1#<br /> <b>Development Goals ##2: </b> #dev_goals_2#<br /> <b>Development Goals ##3: </b> #dev_goals_3#<br /> <b>Development Goals ##4: </b> #dev_goals_4#<br /> <b>Development Goals ##5: </b> #dev_goals_5#<br /> <br /> <hr /> <b>Employee Comments: </b>#iif(Len(emp_comment),DE(emp_comment),DE('none entered'))#<br /> <hr /> <p><u>Signatures</u></p> <b>Manager Signature: #manager_signature#</b><br /> <b>Employee Signature: #employee_signature#</b><br /> <b>Paper Signature: #iif(Len(signature_onfile) gt 0,DE('Yes'),DE('No'))#</b> </div> "); } </cfscript> <div id="container"> <div class="noprint"><a href="index.cfm"><img src="/Performance/img/performance_eval.gif" border="0"/></a></div> <!-- end #header --> <div id="mainContent"> <div id="submission"> <div id="links" class="noprint" > <br /> <a class="left" href="#" onclick="window.print();">Print this page</a> <a class="right" href="#" onclick="window.close();">Close this page</a> <br /> </div> <br class="clear"/> </div> <cfif URL.mode eq "email"> <cfoutput query="retrieveEval"> <CFMAIL TO= '#email#' CC='#session.mail#' FROM= "hal_webmaster@healthalliance.com" SUBJECT= "Evaluation Details" type="html"> #displayEval()# </CFMAIL> </cfoutput> </cfif> <cfif URL.mode eq "print"> <cfoutput query="retrieveEval">#displayEval()#</cfoutput> </cfif> <br /> <div class="noprint" id="submission"> <h4>Evaluation Details Requested</h4> <p>Thank you, <cfoutput query="retrieveEval">#session.givenname# #session.sn#. #iif(URL.mode eq "email",DE('The evaluation details have been sent to #email#'),DE('Please print this evaluation form'))#</cfoutput>.</p> <br /> <div id="links"> <hr /> <a class="left" href="#" onclick="window.print();">Print this page</a> <a class="right" href="#" onclick="window.close();">Close this page</a> </div> <br class="clear"/><br /> </div> </div> <div class="noprint" id="footer"> <p class="style1">Copyright &copy; 2008 - HealthAlliance Hospital</p> <!-- end #footer --></div> <!-- end #container --></div> </body> </html>
Sep 24 '08 #1
2 2085
dmorand
219 100+
How can I post my code, it's looking all messed up
Sep 24 '08 #2
dmorand
219 100+
How can I post my code, it's looking all messed up
Nevermind I'm a dummy. I didn't set my other stylesheet to media=screen so it was tinkering with my print stylesheet
Sep 24 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Michael Foord | last post by:
Here's a little oddity with 'print' being a reserved word... >>> class thing: pass >>> something = thing() >>> something.print = 3 SyntaxError: invalid syntax >>> print something.__dict__...
2
by: jamesthiele.usenet | last post by:
I recently ran into the issue with 'print' were, as it says on the web page called "Python Gotchas" (http://www.ferg.org/projects/python_gotchas.html): The Python Language Reference Manual says,...
10
by: David C | last post by:
We have a classic ASP intranet web site that has been around for a while. Our customer wants to be able to print an envelope from the contact name and address table. We have other reports that we...
4
by: Fred | last post by:
I'm a newbie to JavaScript so be gentle. You know that funky IE margin issue that causes the right side of the page to get cut off when the user prints the html document?...
7
by: bclegg | last post by:
Hi, I have a Monitoring application that needs to output single line summaries to a local dot matrix printer loaded with line flow. ie. It will have exclusive use of the printer which is connected...
3
by: Jeff Mason | last post by:
Hi, I'm looking for a component or code which will allow me to print an existing PDF file from a VB.NET app. I need the ability to specify the PDF file and the printer name on which it is to...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
18
by: =?Utf-8?B?SGVyYg==?= | last post by:
I'm using a ReportViewer in ASP.NET. From the development environment it works fine. When published and I try to open the page with the ReportViewer I get the error: An internal error occurred...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
1
by: =?Utf-8?B?ZGF2aWR0aGV3ZWI=?= | last post by:
I have a recurring issue with a Print Spooler on a Windows 2000 Server. A print job will get stuck and take a large amount of the CPU time. I stop the print spooler in Services, go into Windows...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.