I am trying to print a section of a page. This is not a page that I created and it is an ASP page NOT ASP.NET.
I am trying to use the print css to accomplish this but nothing works. I keep getting an error saying that the cssclass is not defined. When I run the code the print css is not working.
Here is the HTML:
CSS Code:Code:</script> <link rel="stylesheet" href="Floorplan.css" type="text/css" /> <link rel="stylesheet" href="Floorplan_Print.css" type="text/css" media="print" /> </head> <form name="formFloorPlan" method="POST"> <tr class="printmenu"> <td align="left" colspan="2" class="tableheader"> <table border="1" width="1000" cellspacing="0" cellpadding="5" bordercolor="#333333"> <tr> <!-- ========== --> <!-- MENU ITEMS --> <!-- ========== --> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onNewLayout();">New Layout</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onSubmit();">Save Layout</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onSaveAs();">Save Layout AS...</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onCloneFloorObjects();">Clone Layout</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onOpenLayout();">Open Layout</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onRemoveLayout();">Remove Layout</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onAddEmployee();">Add Employee</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onToggleObjectView();">Toggle Employees</td> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="onToggleLocationsView();">Toggle Location Codes</td> <!--<td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="window.open('floormgr_Cleaned_Print.asp?FloorID=<%=Request("FloorID")%>&LayoutName=<%=dspLayoutName%>','Print');">Print Layout</td>--> <td onmouseover = "this.className='toolbaron';" onmouseout = "this.className='toolbaroff';" nowrap class="toolbaroff" onclick="window.print();">Print Layout</td> </tr> </table> </td> <td class="tableheader"> </td> </tr>
I have tried a few variations of this same code but as far as I can tell it is not being used.Code:.printmenu { display : none; visibility : hidden; }
Thanks.


Reply With Quote
Bookmarks