Jan,
Following from www.rsyntax.com
PAGEMODE
Top Previous Next
Operating Condition
Syntax: SET PAGEMODE ON/OFF
Default: OFF
Mode: Single- or Multi-user
Use PAGEMODE to design reports through a custom R:BASE program. With PAGEMODE
on, you create a page of a report in memory, then send the report to a printer
or file. PAGEMODE is an alternative method to creating reports through the
Report Designer; the two methods work in different ways.
The WRITE, SHOW VARIABLE, and SELECT commands are used to "display" data on a
virtual page. To determine the row location of the cursor on the virtual page,
use the ISTAT function with the keyword PAGEROW after a SHOW VARIABLE command.
(ISTAT('pagerow') does not work with the WRITE command.) The DECLARE CURSOR
command is usually used for retrieving data for printing. You control form
feeds (new pages) in your program by using the NEWPAGE or OUTPUT SCREEN command.
At the beginning of your program, set both SET LINES and SET WIDTH to
accommodate the report's size. Then set PAGEMODE to on. You cannot write to a
line longer than the current LINES setting or wider than the current WIDTH
setting. You also cannot change the LINES and WIDTH setting without setting
PAGEMODE to off first.
To send printer control codes to a printer, use the CHAR function to define a
variable containing the printer control codes. Then, that variable is sent to
the printer using the SHOW VARIABLE or WRITE command. For example,
SET VARIABLE vLandscape = (CHAR(27) + CHAR+
(38) + CHAR(108) + CHAR+
(49) + CHAR(79))
WRITE .vLandscape
The printer control codes can be found in the user's manual for your printer.
PAGEMODE allows you to:
Create reports wider than 255 columns and longer than 84 lines.
· Produce multi-column reports.
· Design different styles for the pages of the report, such as a
report with a personalized letter as the first page.
· Create reports from tables with many-to-many relationships that
have two or more detail sections.
· Format odd and even pages differently throughout a report.
· Print headers and footers only on the last page or first page.
· Customize reports so break headers and footers are located on
the same page.
· Place a different break header on every page or the same break
header on every page.
The following command line sets PAGEMODE on:
SET PAGEMODE ON
Following from v6.5++ on www.rsyntax.com
Use PAGEMODE to design reports through a custom R:BASE program. With PAGEMODE
on, you create a page of a report in memory, then send the report to a printer
or file. PAGEMODE is an alternative method to creating reports through the
Report Designer; the two methods work in different ways.
The WRITE, SHOW VARIABLE, and SELECT commands are used to 'display' data on a
virtual page. To determine the row location of the cursor on the virtual page,
use the ISTAT function with the keyword PAGEROW after a SHOW VARIABLE command.
(ISTAT('pagerow') does not work with the WRITE command.) The DECLARE CURSOR
command is usually used for retrieving data for printing. You control form
feeds (new pages) in your program by using the NEWPAGE or OUTPUT SCREEN command.
At the beginning of your program, set both SET LINES and SET WIDTH to
accommodate the report's size. Then set PAGEMODE to on. You cannot write to a
line longer than the current LINES setting or wider than the current WIDTH
setting. You also cannot change the LINES and WIDTH setting without setting
PAGEMODE to off first.
To send printer control codes to a printer, use the CHAR function to define a
variable containing the printer control codes. Then, that variable is sent to
the printer using the SHOW VARIABLE or WRITE command. For example,
SET VARIABLE vLandscape = +
(CHAR(27)+CHAR(38)+CHAR(108)+CHAR(49)+CHAR(79))
WRITE .vLandscape
The printer control codes can be found in the user's manual for your printer or
can be obtained from your printer manufacturer. R:BASE Technologies, Inc.
cannot and does not maintain any libraries of these escape codes.
PAGEMODE allows you to:
* Create reports wider than 255 columns and longer than 84 lines.
* Produce multi-column reports.
* Design different styles for the pages of the report, such as a report
with a personalized letter as the first page.
* Create reports from tables with many-to-many relationships that have two
or more detail sections.
* Format odd and even pages differently throughout a report.
* Print headers and footers only on the last page or first page.
* Customize reports so break headers and footers are located on the same
page.
* Place a different break header on every page or the same break header on
every page.
============================================
I am including a sample page mode report. It is a real live application that
prints a handy report of VIEW definitions.
It consists of two command files: ApPrtBfr.rmd and PGMode.rmd
it is designed to create a file VUSRCALL.PRN
that file contains all the HP printer codes and the Report data. To print the
report you open a "DOS COMMAND PROMPT" and
COPY VUSRCALL.PRN PRN
Jim Bentley
American Celiac Society
[EMAIL PROTECTED]
tel: 1-504-737-3293
--- On Tue, 6/24/08, jan johansen <[EMAIL PROTECTED]> wrote:
> From: jan johansen <[EMAIL PROTECTED]>
> Subject: [RBASE-L] - Re: Dot Matrix
> To: "RBASE-L Mailing List" <[email protected]>
> Date: Tuesday, June 24, 2008, 6:25 PM
> James,
>
> I haven't heard of pagemode.
> Any details appreciated.
>
> Jan
>
>
>
> -----Original Message-----
> From: James Bentley <[EMAIL PROTECTED]>
> To: [email protected] (RBASE-L Mailing List)
> Date: Tue, 24 Jun 2008 16:15:17 -0700 (PDT)
> Subject: [RBASE-L] - Re: Dot Matrix
>
>
> Jan,
>
> If your report is not to complex have you considered
> converting it into a
> pagemode report. You could then imbed the needed dot
> matrix format
> commands.
>
> Jim Bentley
> American Celiac Society
> [EMAIL PROTECTED]
> tel: 1-504-737-3293
>
>
> --- On Tue, 6/24/08, jan johansen
> <[EMAIL PROTECTED]> wrote:
>
> > From: jan johansen <[EMAIL PROTECTED]>
> > Subject: [RBASE-L] - Re: Dot Matrix
> > To: "RBASE-L Mailing List"
> <[email protected]>
> > Date: Tuesday, June 24, 2008, 5:11 PM
> > I hate to tell the client to use DOS whenever he needs
> to
> > print to
> > Dot-Matrix.
> > Right now everytime I send a report to the dot-matrix
> it
> > switches to letter
> > quality mode. I just want to keep it in draft.
> > I have all the [Escape] sequences that I need but the
> help
> > says that the
> > new PCC labels are only for hardware codes not for
> > formatting text such
> > as double-wide or bold like we did it in the dos days.
> >
> > Jan
> >
> >
> >
> > -----Original Message-----
> > From: James Bentley <[EMAIL PROTECTED]>
> > To: [email protected] (RBASE-L Mailing List)
> > Date: Tue, 24 Jun 2008 14:57:02 -0700 (PDT)
> > Subject: [RBASE-L] - Re: Dot Matrix
> >
> >
> > Jan,
> >
> > Only RBase for DOS any version including v7.6 can use
> the
> > ".PRD" files. I
> > still use the DOS version running under windows for
> one of
> > my applications.
> >
> > Jim Bentley
> > American Celiac Society
> > [EMAIL PROTECTED]
> > tel: 1-504-737-3293
> >
> >
> > --- On Tue, 6/24/08, jan johansen
> > <[EMAIL PROTECTED]> wrote:
> >
> > > From: jan johansen
> <[EMAIL PROTECTED]>
> > > Subject: [RBASE-L] - Re: Dot Matrix
> > > To: "RBASE-L Mailing List"
> > <[email protected]>
> > > Date: Tuesday, June 24, 2008, 4:42 PM
> > > Can you call a PRD from 7.6?
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Dennis McGrath <[EMAIL PROTECTED]>
> > > To: [email protected] (RBASE-L Mailing List)
> > > Date: Tue, 24 Jun 2008 16:38:25 -0500
> > > Subject: [RBASE-L] - Re: Dot Matrix
> > >
> > >
> > > I think all of those can be configured as an
> Epson
> > printer.
> > > The Epson1.PRD should work if they are so
> configured.
> > >
> > >
> > >
> > >
> > > From: [email protected]
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of jan johansen
> > > Sent: Tuesday, June 24, 2008 4:25 PM
> > > To: RBASE-L Mailing List
> > > Subject: [RBASE-L] - Re: Dot Matrix
> > >
> > > James,
> > >
> > > They are
> > > OKI Microline 420
> > > OKI Microline 421
> > > OKI Microline 520
> > >
> > > Thanks.
> > >
> > > Jan