Forum Moderators: phranque

Message Too Old, No Replies

landscpae printing.

possible without user intervention?

         

natty

1:09 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



hi all,
probobly the wrong forum.

can someone explain how to print a report in landscape, without having any user intevention.

not neccisarily generating HTML, but mbe when a pdf/excel doc,to be displayed in a browser. can you specify its a landscape document, so user will not have to go to printer settings¦landscape.?
im posting this in here because all you php lot generate pdfs a bit ? (do you?) and may know :)
tia

nat

RonPK

3:34 pm on Jul 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HTML: there is a CSS property 'size' that, if set to 'landscape' and when used in combination with the page property, should force landscape printing. AFAIK browser support is zero. For MSIE only, there is the filter-thingy:
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);

PDF: probably depends on what library you're using (pdfLib or something else). Free solutions probably have their own orientation commands.

Excel: not a clue... Whenever I generate a .xls on my Linux box, I simply serve an HTML table with the Excel extension and mime type. Maybe the COM solutions on Windows machines offer more options.

bcolflesh

1:11 pm on Jul 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Possible solutions here:

[experts-exchange.com...]