/    Sign up×
Community /Pin to ProfileBookmark

Print a document that is not open??

I want to be able to print a document that is not open. For example, I want to list all of Accountings month end reports and put a print button next to each report so that when someone is looking at the page they can just click on the print button and that will print the document automatically, without having to open each one.

Is this possible??

Somebody please help me, this is a project project I am working on!!

Thanks much in advance!!
?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 22.2003 — javascript will print the current window in which this document is,so wyou will need to point to the document that requires to be printed.

window.print()

or

parent.frameName.print()
Copy linkTweet thisAlerts:
@JimMatzauthorJul 22.2003 — So pretty much the document has to open to be printed??
Copy linkTweet thisAlerts:
@Khalid_AliJul 22.2003 — I think so...but I could be wrong(very little chance...? )
Copy linkTweet thisAlerts:
@turbJul 22.2003 — you can use a very little frameset so you load the appropriate page into it and then print this zone.
Copy linkTweet thisAlerts:
@JimMatzauthorJul 23.2003 — Thanks everybody, it looks like it's not possible to do what I was hoping!

Thanks!
Copy linkTweet thisAlerts:
@turbJul 23.2003 — have u try with css ... for exemple, i know that you can print a .rtf document ... so when you click on a button, it print the .rft doc and i think you never saw it at screen

something like this

<link rel="stylesheet" href="name.rtf" type="text/css" media="print">

so maybe this should work

<link rel="stylesheet" href="name.html" type="text/css" media="print">

maybe you'll found something around this

with the web .... never say impossible .... the only limit you have is u
×

Success!

Help @JimMatz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...