FPW 2.6 portrait/landscape 
Author Message
 FPW 2.6 portrait/landscape

   In FoxPro 2.6 for Windows, you can use the PRTINFO() to check whether
the printer is in portrait or landscape mode.  However, I have been
unable to find out how to set orientation from within a program.  I know
that SYS(1037) calls the printer setup dialog but couldn't find a way for
the FPW program code to set page orientation.  I've checked both the
manuals and the online help.

   Also, can you control the window size in the runtime EXE's?  I get
full screen when I compile.  I BUILD PROJECT then BUILD EXE from the dot
prompt.

   Thanks in advance,

-

http://www.*-*-*.com/



Tue, 29 Sep 1998 03:00:00 GMT  
 FPW 2.6 portrait/landscape

Quote:
(James Stolin) writes:

{ Also, can you control the window size in the runtime EXE's?
{ I get full screen when I compile.  I BUILD PROJECT then
{ BUILD EXE from the dot prompt.

Jim,

You can do this with the "Modify Window Screen" command at the top of your
main program.  See the Help-thingie for extensive details on the many
options available.

Ralph Morse



Tue, 29 Sep 1998 03:00:00 GMT  
 FPW 2.6 portrait/landscape

Quote:

>   In FoxPro 2.6 for Windows, you can use the PRTINFO() to check whether
>the printer is in portrait or landscape mode.  However, I have been
>unable to find out how to set orientation from within a program.  I know
>that SYS(1037) calls the printer setup dialog but couldn't find a way for
>the FPW program code to set page orientation.  I've checked both the
>manuals and the online help.
>   Also, can you control the window size in the runtime EXE's?  I get
>full screen when I compile.  I BUILD PROJECT then BUILD EXE from the dot
>prompt.
>   Thanks in advance,

>-

>http://pages.prodigy.com/jbstolin - PWP/HTML and more

We normally have 2 Printer Drive Setups: One Called HPLASER and One
HPLASERL for Landscape.  Then we call _PDSETUP='HPLASER' before the
report to set it up for Portrait or call the other for Landscape mode.

That way I don't have to worry wether or not the laser is in portrait
or Landscape.  The Black Box routine I made always gets the Form Name
as well as the Printer Driver passed to it among other things..



Thu, 01 Oct 1998 03:00:00 GMT  
 FPW 2.6 portrait/landscape
There are a few important facts you left out:

1 Are you using a postscript or PCL printer?
2 Are you using the Print Manager?

With a PCL printer not using Print Manager it is very easy to send PCL
commands using ??? sequences

Charliy



Fri, 02 Oct 1998 03:00:00 GMT  
 FPW 2.6 portrait/landscape

Quote:

>There are a few important facts you left out:

>1 Are you using a PostScript or PCL printer?
>2 Are you using the Print Manager?

>With a PCL printer not using Print Manager it is very easy to send PCL
>commands using ??? sequences

>Charliy

Charliy,

   I am using a variety of printers from dot matrix to laser.  I'm taking
advantage of Windows to switch from printer to printer without worrying
about specific drivers or control codes, especially as the users add new
printers or select other printers on the network.  This also allows the
user to select where they want the report printed.

  When I pop up the FPW 2.6 printer selection dialog, the user can select
the printer and portrait/landscape orientation.  However, I have been
unable to find a way to select the orientation from within a program.

   If you use a ??? command to send control codes directly to  a printer,
the printer is opened in a "raw" mode.  You then need to specify ALL
control codes such as font, size, style, etc instead of specifying those

FPW2.6 Report Writer.

-

http://pages.prodigy.com/jbstolin - PWP/HTML and more



Sat, 03 Oct 1998 03:00:00 GMT  
 FPW 2.6 portrait/landscape

Quote:

>  We have been able to do it through setting one of the bytes in the
TAG2
>field of the report .FRX file (sorry, I'm not sure which since I'm not
at
>the office).

>Nelson M. Johnson, CCP

Nelson,
   Thanks, but been there, done that with the Report Writer. <grin>  This
complex analysis report has info from MANY files and is beyond the
capabilities of the Report Writer.  

-

http://pages.prodigy.com/jbstolin - PWP/HTML and more



Sat, 03 Oct 1998 03:00:00 GMT  
 FPW 2.6 portrait/landscape

says...

Quote:

>   In FoxPro 2.6 for Windows, you can use the PRTINFO() to check whether
>the printer is in portrait or landscape mode.  However, I have been
>unable to find out how to set orientation from within a program.  I know
>that SYS(1037) calls the printer setup dialog but couldn't find a way for
>the FPW program code to set page orientation.  I've checked both the
>manuals and the online help.

>   Also, can you control the window size in the runtime EXE's?  I get
>full screen when I compile.  I BUILD PROJECT then BUILD EXE from the dot
>prompt.

>   Thanks in advance,

>-

>http://pages.prodigy.com/jbstolin - PWP/HTML and more

Jim,
  We have been able to do it through setting one of the bytes in the TAG2
field of the report .FRX file (sorry, I'm not sure which since I'm not at
the office).

Nelson M. Johnson, CCP
i.t.Works, Inc., Information Technology that Works
Systems Development Specialists for PC-LAN and IBM AS/400 Applications



Sun, 04 Oct 1998 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Need Program Control over Printer Landscape/Portrait in FoxWin

2. Landscape Setting Reverts to Portrait

3. Mixed Portrait and Landscape Report

4. printing portrait instead of landscape

5. landscape and portrait

6. portrait vs. landscape print problem

7. landscape prints portrait

8. printing error - landscape vs. portrait

9. Landscape printing in 2.6 Win

10. 2.6 design report in landscape?

11. landscape orientation in fpd 2.6

12. Landscape printing in Foxpro 2.6 Windows

 

 
Powered by phpBB® Forum Software