Print Page | Close Window


Printed From: Roger's Access Library
Category: Other Download Libraries
Forum Name: Tejpal, A.D.
Forum Description: A.D. Tejpal's Library
Printed Date: 25 Jan 2021 at 2:35am
Software Version: Web Wiz Forums 12.03 -

Topic: Report_DynamicCaptions
Posted By: A.D. Tejpal
Subject: Report_DynamicCaptions
Date Posted: 15 Apr 2010 at 9:53am

Explanatory Notes

    This sample db demonstrates printing of multiple reports with dynamic assignment of caption via report's open event. The user can alter the sequence of printing as desired, by moving the report names up or down. Out of available reports, those required to be included in sequential printing are selected by ticking the check box adjacent to report name.

    It is observed that if a report is printed directly by opening in normal view, the caption assigned programmatically in report's open event does not get properly captured in the print queue of the printer. This is explained by the fact that caption of active window tends to get captured for the above purpose. Depending upon the local set up, direct opening of report might not project its window presence adequately. For absolute certainty, it is therefore necessary that the report is first opened in preview mode, followed by PrintOut and Close actions.

    It would be interesting to note that you can't get away by opting for preview in hidden mode. In that case, you might even end up with the caption of the calling form getting depicted in print queue. The defining requirement is that the report should be the visible active window (even if for a very brief duration) when requisite information is getting passed to the printer.
    Time delay (in clock cycles) as included between various stages (e.g. opening in preview mode, print
out and closing), as a measure of abundant precaution, is meant for stabilization between one step and the next.

Version:  Access 2000 File Format

Reference:  DAO 3.6

Download >>: - uploads/37/


Email: -

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 -
Copyright ©2001-2019 Web Wiz Ltd. -