Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2007
    Location
    delhi,india
    Posts
    51
    Thanks
    23
    Thanked 0 Times in 0 Posts

    problem with the printing of alternative pages

    hi forum
    i m trying to print two different pages as soon as the form is saved.

    i tried to use this command
    <A HREF="javascript:window.print()">Print 1st Page</A>
    <A HREF="javascript:window.print()">Print 2nd Page</A>

    but i was unable to use the link command to force the printer to print the two other pages

    print 1st page should print cust1.htm
    and print 2nd page should print cust2.htm

    any ideas how to go ahead for the same?
    smile always
    anand
    smile always:)

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    you can only print windows so, you have to open each link in a separate window and then call the print function for them to get printed
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New Coder
    Join Date
    Nov 2007
    Location
    delhi,india
    Posts
    51
    Thanks
    23
    Thanked 0 Times in 0 Posts
    hi
    thanks for the reply
    well if that is the case you mean to say i need to open a pop up window for each print and then go for print ?
    well in that case is there a way to use onload print ,i mean auto print feature
    smile always:)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •