Landscape printing

Ritesh
07-18-2002, 06:52 AM
Hi

How can i control the printing on my client side to make it to default layout as the "Landscape".

Ritesh

ChiefRedBull
07-18-2002, 07:09 AM
Yknow, it's weird, but I just had to work this out a second ago for myself... :)

Change the Printer.Orientation. 1 = portrait, 2 = landscape.

Ritesh
07-18-2002, 07:32 AM
Thanks chief,
but can you tell me in more detail about the printer object you have created out here

ritesh

Iceplug
07-18-2002, 07:34 AM
The Printer object is included within VB to control printing.
When you press Printer., you should see the box pop up. That means that Printer object is there.

ChiefRedBull
07-18-2002, 07:34 AM
I haven't created it, it's a built in VB object. You can use it to access the printer from your program... how are you printing at the moment? Using API?

Ritesh
07-18-2002, 08:10 AM
thanks chief and ice
is there any way to do the same thing through asp

ChiefRedBull
07-18-2002, 08:52 AM
I would assume it is the same - use the Printer object, however, this will print off on the server. There's no way of using ASP to print on the client.

You might be able to write some javascript to do so though, although I would think you probably can't, since it could be used maliciously.

Derek Stone
07-18-2002, 01:45 PM
All you need is a simple cascading style sheet.


<STYLE>
@media print {
@page{ size: landscape; }
}
</STYLE>


-CL

ChiefRedBull
07-18-2002, 03:02 PM
Really? Cool. :)

Ritesh
07-22-2002, 08:12 AM
hi crazer lunatic,
i tried implementing it in the same way but still i am getting the prints in the potrait mode however by altering the style sheet i was able to change the font size of the printed matter..

tell me more explicitly about the printing

Derek Stone
07-22-2002, 02:06 PM
http://www.w3.org/TR/REC-CSS2/page.html

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum