Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Feb 2017
    Location
    Rutland England
    Posts
    206

    Default Print command on Web page

    Have searched help etc but cannot find. I want to include a "Print this page" command on a web page, typically to download an application form. Terry

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,474

    Default Re: Print command on Web page

    Terry, the simplest if the form is the web page is to have a button "Print this page" with a web link of javascript:window.print();.

    If you want a genuine download link then that is a different kettle.
    Simplest would be to create a rectangle Placeholder with body code of <a href="index_htm_files/151by6 source.pdf" download="fred";>Download this form!</a>.
    The PDF would have to be dragged onto the page as a link for Xara to know about it.
    This only works on modern browsers, otherwise it just opens the form.

    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

  3. #3

    Default Re: Print command on Web page

    I would use a .pdf with the necessary link to it. You could add a short instructions text box for those that are computer challenged and even include a link to a reader such as Foxit or Adobe. Most modern browsers will guide the user once a link is clicked, so the user can choose to download the form or open the form if the browser is not configured to open it within the browser. I personally don't want a button that automatically prints a .pdf or any other document until I have seen it as some files have blank pages or unneeded pages and I can choose which page(s) to print. Just my way of working with forms but it does work and Xara / Magix makes it easy to add the link - no coding necessary.

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

    Default Re: Print command on Web page

    Acorn The simplest form is exactly what I wanted and believe it or not I have got it working. Many thanks as normal. Terry

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

    Default Re: Print command on Web page

    Thanks for the reply, as you can see I have used the simplest solution as per Acorn's reply. However I don't think my terminology refers to the "forms" as you know it. We have a pre printed application form that has to be posted back to us with other documents. Apologies if my statement was confusing. However I think your instruction will be needed in the future. Terry

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

    Default Re: Print command on Web page

    Had to abandon the "Print Page" option for now. I could only get it to work correctly with Edge. Chrome, IE and Firefox printed offset and small, have I missed something.
    Pleased that it printed but not any good if it is not correct. Terry

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,474

    Default Re: Print command on Web page

    Quote Originally Posted by golfertel View Post
    Had to abandon the "Print Page" option for now. I could only get it to work correctly with Edge. Chrome, IE and Firefox printed offset and small, have I missed something.
    Pleased that it printed but not any good if it is not correct. Terry
    Terry, can't help much without the offending page. The offsets may be what the browser print options are set to.

    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

  8. #8
    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

  9. #9
    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

  10. #10
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,474

    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

 

 

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
  •