473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

printing in landscape automatically

52 New Member
Dear sir,

I have trouble with printing page with landscape. I am using java script to print the page. as well as I have set css file to print landscape but it is not working.

I have used these line in css files,

[HTML]<style type="text/css">
<!--
@page { size: landscape; }
-->
</style>
[/HTML]
it automatically takes the portrait (default one), but I wish to print landscape automatically. please assist me.

Regards,
Faruk Chowdhury
Sep 7 '08 #1
6 5572
acoder
16,027 Recognized Expert Moderator MVP
You have to set the media property to "print".
Sep 7 '08 #2
farukcse
52 New Member
Dear Sir,
Thanks for your reply.
i set the media property with print but it does not work.
so can you give me other suggesation?

Regards,
faruk Chowdhury
Sep 8 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
Which browser(s) are you testing on?
Sep 8 '08 #4
farukcse
52 New Member
Dear Sir,
i am tesiting on internet explorer version 6.0 .

Thanks in advance .

Faruk
Sep 15 '08 #5
farukcse
52 New Member
Dear Sir,
i am tesiting on internet explorer version 6.0 .

Thanks in advance .

Faruk
Sep 15 '08 #6
acoder
16,027 Recognized Expert Moderator MVP
Do you want this to work only in IE6? I don't think IE6 supports the @page property, so you can try using this hack (hacks for IE - tell me something new)
Sep 15 '08 #7

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

Similar topics

2
2981
by: Darcy Kahle | last post by:
I am trying to do some advanced printing in python using the win32ui module, and have run into an issue. I need to print a page landscape. As I could not determine how to specify the orientation...
4
4833
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
2
7123
by: Chris Beall | last post by:
I have a table (yes, it's a REAL table...) that is quite wide. Even with a small font selected, it won't fit on a portrait mode letter page. Rather than leave the user to figure out how to print it...
3
10568
by: MarcJ | last post by:
Hello, I can't seem to get printing to landscape working. Here is some of the code I've tried. '--------------------------------------------------------------------------------- Dim...
5
10072
by: Patrick De Ridder | last post by:
How can I turn what I want to print 90 degrees using the logic below? Please tell me the code with which to make the modification. Many thanks, Patrick. using System.ComponentModel; using...
5
6821
by: cpopham | last post by:
I tried posting earlier and it never showed up.. I have a simple program to print a text file. I need to know how to change the page settings to landscape if it is not already in ladnscape mode. ...
3
31784
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName = "Weld Image" Dim pkPaperSize As New...
2
9931
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
2
4375
by: satnamsarai | last post by:
it is possible to change page orientation to landscape from asp.net page? I am using window.print() dialog to print a page and I would like that page to print automatically in landscape view.
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
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
7377
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...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5624
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,...
1
5047
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.