#1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Oct 2012
    Posts
    14
    Rep Power
    0

    Cool 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.
  2. #2
  3. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Mar 2005
    Location
    Columbus, OH
    Posts
    1,581
    Rep Power
    278
    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 Give Rep button (bottom side on this reply ) and agree
  4. #3
  5. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Oct 2012
    Posts
    14
    Rep Power
    0
    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.
  6. #4
  7. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Oct 2012
    Posts
    14
    Rep Power
    0
    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

  1. Change Date format when posted to web page
    By howDoI in forum ASP Development
    Replies: 3
    Last Post: September 29th, 2011, 07:14 AM
  2. Page format
    By stjohnwa in forum ASP Development
    Replies: 1
    Last Post: August 22nd, 2008, 07:36 AM
  3. Convert ASP page to mobile format
    By foreverforever in forum ASP Development
    Replies: 0
    Last Post: July 15th, 2008, 03:33 AM
  4. ASP messing up page format
    By countrygirl in forum ASP Development
    Replies: 5
    Last Post: January 11th, 2006, 07:02 PM
  5. asp page returns a printed "false"..why?
    By ng_dodo in forum ASP Development
    Replies: 4
    Last Post: March 17th, 2005, 07:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo