| View previous topic :: View next topic |
| Author |
Message |
Bob Richardson Guest
|
Posted: Fri Mar 05, 2004 11:24 pm Post subject: Printer orientation problems |
|
|
I'm trying to have some output printed with Landscape orientation. While
this code compiles, it bombs when the Printer.Orientation := poLandscape; is
execute. Anyone have an idea what's going on here?
if pcOrientation in Printer.Capabilities then
Printer.Orientation := poLandscape;
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Sat Mar 06, 2004 7:53 am Post subject: Re: Printer orientation problems |
|
|
Bob Richardson wrote:
| Quote: | I'm trying to have some output printed with Landscape orientation. While
this code compiles, it bombs when the Printer.Orientation := poLandscape; is
execute. Anyone have an idea what's going on here?
if pcOrientation in Printer.Capabilities then
Printer.Orientation := poLandscape;
|
I don't think that's enough information. Presumably you
can print landscape from other apps; i.e. your printer
driver is not corrupted?
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
J French Guest
|
Posted: Sat Mar 06, 2004 8:05 am Post subject: Re: Printer orientation problems |
|
|
On Fri, 5 Mar 2004 15:24:44 -0800, "Bob Richardson"
<bobrNO (AT) SPAMhidbey (DOT) com> wrote:
| Quote: | I'm trying to have some output printed with Landscape orientation. While
this code compiles, it bombs when the Printer.Orientation := poLandscape; is
execute. Anyone have an idea what's going on here?
if pcOrientation in Printer.Capabilities then
Printer.Orientation := poLandscape;
|
I've noticed that one needs to set the orientation before one sends
anything to the printer
- have you tried putting that code /before/ Printer.BeginDoc ?
|
|
| Back to top |
|
 |
Bob Richardson Guest
|
Posted: Sat Mar 06, 2004 5:24 pm Post subject: Re: Printer orientation problems |
|
|
"J French" <erewhon (AT) nowhere (DOT) com> wrote
| Quote: | On Fri, 5 Mar 2004 15:24:44 -0800, "Bob Richardson"
[email]bobrNO (AT) SPAMhidbey (DOT) com[/email]> wrote:
I'm trying to have some output printed with Landscape orientation. While
this code compiles, it bombs when the Printer.Orientation := poLandscape;
is
execute. Anyone have an idea what's going on here?
if pcOrientation in Printer.Capabilities then
Printer.Orientation := poLandscape;
I've noticed that one needs to set the orientation before one sends
anything to the printer
- have you tried putting that code /before/ Printer.BeginDoc ?
|
PERFECT! That solved the problem. Thank you very much.
|
|
| Back to top |
|
 |
|