[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

multiple reports output to single file



I'm including a simple example of what I'm trying to do:

I'm trying to use a multiple layout/multiple report sqr to produce a single
(pdf) output file. Everything works as it should except I can't figure out
how to combine the separate output sections (each with it's own header and
layout)  into one output file.

Is this possible?

What I currently see is two files:
 rep_01.pdf
 rep.pdf

Here's the code:
-----------------------
begin-setup
 declare-layout rep1_layout
  orientation = landscape
 end-declare

 declare-layout rep2_layout
  orientation = portrait
 end-declare

 declare-report rep1_report
  layout = rep1_layout
 end-declare

 declare-report rep2_report
  layout = rep2_layout
 end-declare
end-setup

begin-program
 do rep1
 do rep2
end-program

begin-heading 10 for-reports = (rep1_report)
 print 'rep1 heading' (1,50)
end-heading

begin-heading 10 for-reports = (rep2_report)
 print 'rep2 heading' (1,50)
end-heading

begin-procedure rep1
 let $text = 'printing rep1 report........'
 do print_rep1
end-procedure

begin-procedure rep2
 let $text = 'printing rep2 report........'
 do print_rep2
end-procedure

begin-procedure print_rep1
 use-report rep1_report
 print $text (1,1)
end-procedure

begin-procedure print_rep2
 use-report rep2_report
 print $text (1,1)
end-procedure

SQR/6.0/Sun/SunOS 5.5.1/Sybase CT-LIB 10.0.4/Apr 27 2000

**********************************************************************
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom it is
addressed.  This communication may contain protected or privileged
material and should only be viewed by the intended recipient(s).  If
you are not the intended recipient or the person responsible for
delivering the email to the intended recipient(s), be advised that
you have received this email in error and that any use, dissemination,
forwarding, printing or copying of this email is strictly prohibited.
**********************************************************************