Thanks Parul for taking the time to reply. The issue is that my customer wants data and instructions to appear on the screen but wants the print command to print only the data. This works well for code delivered from the server using class='noprint', but fails if the page is saved to a file, then opened in a browser and printed. In both cases, the HTML is identical, leading me to believe that Internet Explorer renders HTML code differently if the source is a file rather than a web page.
The question has nothing to do with what happens on the server side. It is how Internet Explorer renders the HTML it receives. When the code is received from the server, it correctly renders the class='noprint' command when printing the file. Conversely, when rendering the IDENTICAL HTML code from a saved file, it ignores the class='noprint' commands and the entire file prints. Any insights? Of course, I can always go the "Printable Page" route and create a link to a page that only displays the data but the customer would prefer not to do that. Joel -----Original Message----- From: Parul Agarwal [mailto:[EMAIL PROTECTED] Sent: Sunday, September 19, 2004 10:49 PM To: [EMAIL PROTECTED] Subject: Re: [AspClassicAnyQuestionIsOk] Saved HTML Files From IE Don't Print Properly Hi Joel, Lets look at the problem logicall....since the page you are talking of is an asp page, it will get excuted only at the server-end. If the page is saved as HTML then the part which is excuted by the server wont work. I think the solution to this could be to, aprt from the no print code that you have, also to get the asp page to query this part which is not to be prnted from the database (dont hard-code it). So, if the page is saved then this part which is to gotten from the server will be unavailable to the html page. HTH, parul --- Joel Elias <[EMAIL PROTECTED]> wrote: --------------------------------- My apologies if this may be a bit off topic but I have been doing some searching on this and have not found an answer. Perhaps if you don't have an answer, you can tell me where to look. I have created some active server pages for a customer which use a "noprint" command in CSS to suppress printing for some parts of the page. This works perfectly when the customer views and prints pages from the web but fails if the customer saves the pages as HTML and later opens the saved files in IE. In this case the full page prints and the desired parts are not suppressed. I have checked the code for the saved files and they are identical line-for-line with the code sent from the server. (Which, of course is what you would expect.) Doe IE render code from a server differently from code from a saved file? Is there a fix or workaround? Thanks in advance - Joel ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
