Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to have a button which prints a file from the server.
Old 12-07-2009, 04:27 PM How to have a button which prints a file from the server.
Novice Talker

Posts: 13
Name: Layla Stone
Location: California
Trades: 0
Hi all,

I am new to web designing and new to this forum, so any and all help is greatly appreciated.

I have a website with a lot of text content spread over half a dozen pages. I want to give readers the option to print out a file that has all of the text in one place for easy readability. I am hoping to create such a file (possibly as a pdf) and store it on the server, and then have a print link which will automatically print this file without the user having to download and print the file manually.

Is this possible? How would I go about doing this?

Also, if this is not an appropriate question for the HTML forum, which forum should I post under?

Thank you in advance for all replies, Layla
layla9 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2009, 04:33 PM Re: How to have a button which prints a file from the server.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
can't be done.
the server cannot send print commands to a client printer.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-07-2009, 04:38 PM Re: How to have a button which prints a file from the server.
Novice Talker

Posts: 13
Name: Layla Stone
Location: California
Trades: 0
I would like to make a very user friendly, cross-platform friendly way to print out a file with the text of the whole site. What is the best way to do that? Should I create a pdf and then link to it and have people print it from their browser? Will they have to have special pdf reading software installed on their computer? Is there an easier way to do this?
layla9 is offline
Reply With Quote
View Public Profile
 
Old 12-07-2009, 04:43 PM Re: How to have a button which prints a file from the server.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A linked pdf will do fine, and every man and his dog will have a version of Acrobat reader on their machine.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-11-2009, 07:35 AM Re: How to have a button which prints a file from the server.
Super Talker

Posts: 139
Name: John Davis
Trades: 0
you can to create additional pages for printing (page with guilty text only).
Such page can be available by link from original page (with rich info, menu, adv. etc.)

at the end of page code you can place following code:
Code:
<script>
document.print();
</script>
This code asks user about page printing.
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 12-11-2009, 07:59 AM Re: How to have a button which prints a file from the server.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by MapMaster View Post
you can to create additional pages for printing (page with guilty text only).
guilty text??


Quote:
Originally Posted by MapMaster View Post
Such page can be available by link from original page (with rich info, menu, adv. etc.)

at the end of page code you can place following code:
Code:
<script>
document.print();
</script>
This code asks user about page printing.
That will NOT print from the server which is the original question.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-11-2009, 10:29 AM Re: How to have a button which prints a file from the server.
Super Talker

Posts: 139
Name: John Davis
Trades: 0
>guilty text??
I mean page with useful text

>That will NOT print from the server which is the original question.
Right, but server side may generate code for client side to propose printing.
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 12-11-2009, 02:41 PM Re: How to have a button which prints a file from the server.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I am hoping to create such a file (possibly as a pdf) and store it on the server, and then have a print link which will automatically print this file without the user having to download and print the file manually.
In actual fact what the OP is asking for is impossible, for a file to print on the client machine it MUST be downloaded.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How to have a button which prints a file from the server.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30642 seconds with 12 queries