BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printer orientation problems

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Bob Richardson
Guest





PostPosted: Fri Mar 05, 2004 11:24 pm    Post subject: Printer orientation problems Reply with 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;


Back to top
Jeremy Collins
Guest





PostPosted: Sat Mar 06, 2004 7:53 am    Post subject: Re: Printer orientation problems Reply with quote



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





PostPosted: Sat Mar 06, 2004 8:05 am    Post subject: Re: Printer orientation problems Reply with quote



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





PostPosted: Sat Mar 06, 2004 5:24 pm    Post subject: Re: Printer orientation problems Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.