•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,588 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,012 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2474 | Replies: 6
![]() |
| |
•
•
Join Date: Nov 2007
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
Hi All,
I have a webpage written in c# asp.net. The page has a datagrid and a print button. The print button has the javascript onclick="javascript:window.print();"
I want to be able to change the print preference to LandScape.
I tried using CSS but because I have a datagrid its not working. CSS works if I don't have the datagrid.
This is kinda urgent.
Thanks
I have a webpage written in c# asp.net. The page has a datagrid and a print button. The print button has the javascript onclick="javascript:window.print();"
I want to be able to change the print preference to LandScape.
I tried using CSS but because I have a datagrid its not working. CSS works if I don't have the datagrid.
This is kinda urgent.
Thanks
Have asked to have the thread moved.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
That attribute does not belong to the web designer. It belongs to the owner of the computer that is displaying the web page. It's in his printer settings on his hard disk. It is an Internet security violation for a web page to change the internal settings on a user's computer.
Think of the lost business time a user might incur if his printer orientation is suddenly changed without his knowledge. He might print twenty documents, and then walk over to the printer and
find that he has to print all of them again. A certain basketball coach might throw the printer across the room.
IE has a nonstandard way to change the print orientation from a website (and puts it back after the user leaves that site), but it doesn't work on other browsers.
Just ask the user to make the setting change before printing.
Think of the lost business time a user might incur if his printer orientation is suddenly changed without his knowledge. He might print twenty documents, and then walk over to the printer and
find that he has to print all of them again. A certain basketball coach might throw the printer across the room.
IE has a nonstandard way to change the print orientation from a website (and puts it back after the user leaves that site), but it doesn't work on other browsers.
Just ask the user to make the setting change before printing.
Last edited by MidiMagic : Nov 15th, 2007 at 2:07 am.
Daylight-saving time uses more gasoline
Maybe this would be of some help to you.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Batch print barcode in ASP.NET, C#, on client side (ASP.NET)
- print without dialog box using javascript (JSP)
- Is it possible to print an external file using javascript? (JavaScript / DHTML / AJAX)
- Printing in landscape (JavaScript / DHTML / AJAX)
- Javascript - Print Date in different color (JavaScript / DHTML / AJAX)
- want to print a html document in landscape orientation (HTML and CSS)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Destroying Cookies
- Next Thread: show/hide element by name



Hybrid Mode