Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. IE pagesetup property for printersetup through javascript?

IE pagesetup property for printersetup through javascript?

Scheduled Pinned Locked Moved ASP.NET
javascripttutorialquestionworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    param thaker
    wrote on last edited by
    #1

    Hi Friends , I want to set the Internet Explorer's Page Setup Property for printing automatically , when the page is loaded . Means i want to set the margin defalult , so no need to set the margin manually after loading the page when we r going to print the document.And if possible ,i want to set it through javascript. Please , guide me, regarding this. Thankin you, Param -- modified at 3:52 Thursday 7th December, 2006

    param

    K 1 Reply Last reply
    0
    • P param thaker

      Hi Friends , I want to set the Internet Explorer's Page Setup Property for printing automatically , when the page is loaded . Means i want to set the margin defalult , so no need to set the margin manually after loading the page when we r going to print the document.And if possible ,i want to set it through javascript. Please , guide me, regarding this. Thankin you, Param -- modified at 3:52 Thursday 7th December, 2006

      param

      K Offline
      K Offline
      Kapil Thakur
      wrote on last edited by
      #2

      hi, use the follwing code in section and change the text in BOLD to your values javascript:window.open('http://www.YOUR URL.com','YOUR PAGE TITLE','width=570,height=650,top='+((screen.height/2)-(NaN))+',left='+((screen.width/2)-(NaN))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); Regards, Kapil Thakur (Where's there is Kapil , there is a way) - thakur.kapil@gmail.com </x-turndown>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups