Welcome to TalkGraphics.com
Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    Feb 2017
    Location
    Rutland England
    Posts
    206

    Default Re: Print command on Web page

    Thanks for coming back to me, as most of the site is working well, I will come back to this problem later. Terry

  2. #2
    Join Date
    Feb 2017
    Location
    Rutland England
    Posts
    206

    Default Re: Print command on Web page

    All pages on the site are displaced to the right. I have had to attach the complete site because I did not know how or if I could attach a single page. The particular page I'm interested in callers to print is the "Seniors Open". When I go to other sites their "Print Page" comes out perfectly OK, whatever browser I'm using so I assume it is my error. Any ideas please.


    Further question how do I delete captured images in the "File Upload Manage" Terry
    Attached Files Attached Files

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,912

    Info Re: Print command on Web page

    Terry, part of a solution for you to try.

    change the link to
    Code:
    javascript: var pWindow = window.open(window.location, "Print Window", "width=840,height=1400", "toolbar=no,scrollbars=no,resizable=no,top=100,left=100"); pWindow.print();
    the problem with Xara centring web pages is he left margin becomes part of the printed page and is therefore dependent on the width of the browser at the time. If the browser has a horizontal scrollbar then the whole page is placed nicely.

    This fix open a new window to such a width and then enables the print.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,912

    Default Re: Print command on Web page

    Try this tweak, which should close the pop-up after 10 seconds if the print is cancelled or committed.
    Code:
    javascript: var pWindow = window.open(window.location, "Print Window", "width=840,height=1400", "toolbar=no,scrollbars=no,resizable=no,top=100,left=100"); pWindow.print();void(setTimeout('pWindow.close()',10000));
    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Feb 2017
    Location
    Rutland England
    Posts
    206

    Default Re: Print command on Web page

    Thanks Acorn. I think we/you are nearly there, my page I think needs some tweeks but haven't time to finish tonight, it is printing centrally but has rubbish amongst it, will sort tomorrow. Thanks for your help.
    Terry

  6. #6
    Join Date
    Feb 2017
    Location
    Rutland England
    Posts
    206

    Default Re: Print command on Web page

    Apologies Acorn but I cannot get it to work. The print option appears once, with the page having spurious items on it, then it just stops working. Tried various tweaks but still struggling. Terry

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,912

    Info Re: Print command on Web page

    Quote Originally Posted by golfertel View Post
    Apologies Acorn but I cannot get it to work. The print option appears once, with the page having spurious items on it, then it just stops working. Tried various tweaks but still struggling. Terry
    Terry, both work on my browsers with your site. The length of your current page is force a two-page print. Only Edge is awkward and sometimes won't automatically close. The print layout in Edge is also weird.

    Tweaks won't help as even a missing semi-colon and the code will not play.

    Here is a sampler: JS - Print Page - Smiler.xar

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Bookmarks

Posting Permissions

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