Fred,
I don't know if you can programmatically change the paper source for
individual pages within a report, but there might be another way. Have you
tried to set the 'check' into a subreport? You might be able to change the
paper source for the subreport - given that it is a report object onto
itself. Just a thought - I have no idea if it will work or not, but it
certainly is worth a shot (far better than trying to figure our what page
you are on in a printjob).
HTH,
--
Dan McGarry
HCI Systems, Inc.
http://www.hcisystems.com
Quote:
> My report will be printing an address page (for a windowed envelope) on
page
> one, a check on page two, and report data on pages 3 through n.
> I was hoping to change the paper bin to use the "preprinted check stock"
for
> each page 2, and then back to the regular paper for all other pages. In
the
> RDC, the Report property is PaperSource.
> Two options that I can't get to work:
> 1) Can I change the Report.Papersource property during the
BeforeFormatPage
> event when pagenum = 2? I keep getting Permission Denied errors when I
try.
> 2) Is there a way that I can conditionally set the Papersource directly in
> the RPT - that is, to change the Paper Source to "lower bin" when
printing
> "page 2"?
> Any suggestions would be appreciated.
> Thank You