- Total Members: 220,040
- Threads: 525,393
- Posts: 977,013
-
November 16th, 2012, 01:37 PM
#1
Why different browsers produce different Printed format for the sama ASP Page
Hi all,
I have an ASP page which provides a print button and on clicking which prints the content of a div based upon its Id in javascript function. WHat hapens is that when I print the page in Fire fox it gives an improper format. When I print using IE it gives some different distorted printed page. and when I pront in chrome , even it has some deviation of the page that is printed from the original page being viewed. I am having hell a lot of divv's in my page and I am writing few div's dynamically in my VBScript code as well. where ever and what ever might be the browser, they should producte the same consistent page as output right..? then why is this variation happening?
Thanks,
Pavan.
-
November 18th, 2012, 10:01 AM
#2
it is not asp problem. Check your html output code. Same browsers allow you to miss something in your html and continue still wrapping page correctly, but some not...
So. Fix all your html problems. Pay attention to closing tags and tables...
GK
__________________________________________________ _____
if you found this post is useful click scale

(right side on this reply ) and agree
-
November 19th, 2012, 04:10 PM
#3
HI GK,
I am displaying the data in the div's in my page. I have a total of 162 starting div's and also 162 closing div's in my page. So I guess that the div missing is not the problem. However I will aso be searching for other aspects. kindly let me know if you have any more comments.
-
November 19th, 2012, 04:17 PM
#4
I have the dynamically generated div content in ASP Script. which prints div's and insert data into them when page is rendered. I print using the button on page which calls a function. that takes div id as parametrr and generates html using tehdiv's innerHTML attribute. When I print the doucment using document.print. wil that all execute the page again with scripts and write to word doucment? or uses the page layout for printinig. I am in a confusion now. I guess this might be causing the issue here. please comment.
Similar Threads
-
By howDoI in forum ASP Development
Replies: 3
Last Post: September 29th, 2011, 07:14 AM
-
By stjohnwa in forum ASP Development
Replies: 1
Last Post: August 22nd, 2008, 07:36 AM
-
By foreverforever in forum ASP Development
Replies: 0
Last Post: July 15th, 2008, 03:33 AM
-
By countrygirl in forum ASP Development
Replies: 5
Last Post: January 11th, 2006, 07:02 PM
-
By ng_dodo in forum ASP Development
Replies: 4
Last Post: March 17th, 2005, 07:56 AM