/    Sign up×
Community /Pin to ProfileBookmark

Changing Printing Options

Hello All,
I need to print a report page. I am using jsps and j2ee, but that does not really matter. When I am printing I use the javascript:window.print() on the onclick event of my image button. The problem is that I want to change the printing option from portrait to landscape without having the user have to go to page setup and chage it there. Also, it would be nice if the browser print dialogue was skipped and the page was printed on the default printer. Does anyone know a javascript or any other kind of solution to either of these problems?
Thanks,
Matt

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Aug 11.2005 — Util the browsers support the CSS option to do it, you are out of luck. IE has activeX controls that you can find on the web that control print settings. All of my reports are built with a pdf generator so I do not have to worry about this!

Eric
×

Success!

Help @Frantic211 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.8,
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,
)...