473,416 Members | 1,704 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

How to set web print orientation and margin? Preferably using JavaScript

3
I have a project that in some pages, I need to make prints. But in some files I need to print in portrait orientation, and for other files I need to print in landscape orientation.

To don't let the person wasting time and patience reconfiguring all the time, is there any way to leave a predefined configuration for some types of pages and other predefined configurations for other pages?

Is there any web language that can do this? If yes, how can I use this language to achieve my goal?
If would be possible,Preferably using JavaScript
Nov 23 '22 #1
0 6884

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: CheGueVerra | last post by:
Hi All, Wondering if there is a way to force the print orientation to landscape using css? Thanks
1
by: mystique | last post by:
How can i change the print orientation from code? Maybe somewhere in registry...? thank you
4
by: Anshul Gupta | last post by:
Hi, Is there a way i can just print a designated area out of the whole asp(or html) page using javascript or vbscript. i want to mark out the beginning and the end on the page and create a link...
7
by: Ant | last post by:
Hi, I'm, having some problems with this function. function displayElements() { for (i=0;i<document.forms.elements.length; ++i) { document.writeln(document.forms.elements.value); }
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
1
by: webpearl | last post by:
Welcome to all who r helping and sharing their ideas with others.i am a new to this forum.Can any one say an immediate soln on my questions: Qn1: How can i print a hidden data in the hidden data...
1
by: sivakumarsubash | last post by:
I want to print all the files within the folder without opening the print dialog using javascript. the files may be any format, ie doc, xls, pdf, jpeg etc.. any help would be appreciated...
3
meenakshia
by: meenakshia | last post by:
hi forum i m facing a problem regarding printing withing the frames page i have a main frame page. which has on the left the menu html page loaded and on the right the target content page. when i...
1
by: vivek kapile | last post by:
Title:Dynamically adding table row with a checkbox using JavaScript Author:Vivek Kapile Email:snipped Language:JavaScript Platform:JavaScript in ASP.net Technology:Used in ASP.net...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.