Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Location
    I live in Hertfordshire, United Kingdom
    Posts
    48

    Default How di you print a form?

    Hi,
    Having created the page within my web site, it shows the layout of the form to be printed out.
    I have created a pdf of this form and also a word docx document.
    I have placed a Print pdf Form button and a Print Docx form button,
    I have found that I need to place the - javascript:windows.print(); - onto each button
    BUT
    how do I direct each print request to the separate pdf or word documents?
    At this time when I hit the separate print buttons, they just prints out the attached web page, yes it shows the document but also the navbar and page tile etc, I just want the documents.
    Any Ideas please.

    Thanks

    Steve Bishop

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,744

    Default Re: How di you print a form?

    Steve, you create the form as PDF and Word and save them somewhere.

    (1) You then drag the PDF onto your page and select Add Link.
    If you select your PDF icon so created, you can then click Edit Widget and open the Placeholder code (body) and you will find the link to the PDF file.
    e.g., <a href="index_htm_files/2014-11-27000000.pdf"><img src="http://webdesigner.xara.com/pdficon_large.png" border="0"></a>.
    You would copy this link to your Form (PDF) button as its link.
    You then remove the PDF icon.

    (2) A Word file, or most others, is a different approach.
    Add a box to your page.
    Select it and press Ctrl+Alt+Shift+A and in the dialog box find the required file and click OK.

    (3) You can automate it a bit more by using Link > Link to file (PDF, AVI, etc) in its Web Properties.
    I don't use this normally as it creates a genuine link.

    You would then compose the link for your Form (Word) button as index_htm_files/<Word File Name.docx>.
    Unfortunately, you have to keep the box on your page; I usually hide it underneath something.
    I find this to be a poor design approach and I hope there is a better solution form Xara or another TGer.

    Acorn

    P.S. Just realised that if you have the buttons already, the third approach is exactly what you want for either the PDF or MS word file!!!
    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
    Join Date
    Mar 2009
    Location
    I live in Hertfordshire, United Kingdom
    Posts
    48

    Default Re: How di you print a form?

    Quote Originally Posted by Acorn View Post
    Steve, you create the form as PDF and Word and save them somewhere.

    (1) You then drag the PDF onto your page and select Add Link.
    If you select your PDF icon so created, you can then click Edit Widget and open the Placeholder code (body) and you will find the link to the PDF file.
    e.g., <a href="index_htm_files/2014-11-27000000.pdf"><img src="http://webdesigner.xara.com/pdficon_large.png" border="0"></a>.
    You would copy this link to your Form (PDF) button as its link.
    You then remove the PDF icon.

    (2) A Word file, or most others, is a different approach.
    Add a box to your page.
    Select it and press Ctrl+Alt+Shift+A and in the dialog box find the required file and click OK.

    (3) You can automate it a bit more by using Link > Link to file (PDF, AVI, etc) in its Web Properties.
    I don't use this normally as it creates a genuine link.

    You would then compose the link for your Form (Word) button as index_htm_files/<Word File Name.docx>.
    Unfortunately, you have to keep the box on your page; I usually hide it underneath something.
    I find this to be a poor design approach and I hope there is a better solution form Xara or another TGer.

    Acorn

    P.S. Just realised that if you have the buttons already, the third approach is exactly what you want for either the PDF or MS word file!!!

    Hi,
    Thank you.
    I am not sure into what link within the Button web properties I am supposed to use, the Link to and Link to another, can't be used, so its either Link to web or email address or Link to file.
    copying the placholder code from the PDF icon wont stay inside the Link to file and if I put that text into Link to Web box it does not connect to anything when seen through my browser, I also get a blank rectangle appear over the button text when I go to select the button.
    If I use the Link to file box and go find my PDF the button works but only shows my PDF in a Adobe window with a print option, which is fine, I was looking for something like the windows print option when you clicked the button , like you get inside word or excel, and you just select print and you get the document you want.
    Am I being overcomplicated here and gust accept the link to my PDF and use Adobe's print option?
    I still get this rectangle box that appears when I go to select the button?

    Steve

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

    Default Re: How di you print a form?

    I had assumed you had a purpose for requiring an MS Word version of the form.
    Any external resource (file) will be opened by its viewer (PDF --> Adobe Reader, Acrobat or other); it knows how to handle printing.

    It would be different if you wanted part of the page to print then you might be using CSS's @media print { .dontPrint { display: none; } } approach.

    I was trying to show how to get a Link To value for you where you would just use the "index_htm_files/2014-11-27000000.pdf part.

    Just use the third option and go for a PDF button; fewer people have MS Word installed anyhow.

    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
    Mar 2009
    Location
    I live in Hertfordshire, United Kingdom
    Posts
    48

    Default Re: How di you print a form?

    Quote Originally Posted by Acorn View Post
    I had assumed you had a purpose for requiring an MS Word version of the form.
    Any external resource (file) will be opened by its viewer (PDF --> Adobe Reader, Acrobat or other); it knows how to handle printing.

    It would be different if you wanted part of the page to print then you might be using CSS's @media print { .dontPrint { display: none; } } approach.

    I was trying to show how to get a Link To value for you where you would just use the "index_htm_files/2014-11-27000000.pdf part.

    Just use the third option and go for a PDF button; fewer people have MS Word installed anyhow.

    Acorn
    Hi,
    again thanks I have gone for the option where the button when selected opens up the PDF or docx and then anyone can print from the relevant programme .

    Thanks

    Steve Bishop

 

 

Tags for this Thread

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
  •