FastReport implements the base map only preview

xiaoxiao2021-03-06  14

FastReport implements the base map only previews no print

Copyright © ASHUIXU Reprint, please stay intact and indicate

reason:

In the sleeve, for the interface is more friendly, you need to display the base chart when you preview, but don't print.

explore:

Due to the Practical FastReport version is V4.71, this version does not have this feature.

1. Produce two sets of reports, set for preview, set for printing.

2. Modify the FastReport component.

The following author introduces the second method.

Modifying FastReport Components Implement only preview:

It can be considered to add new attribute printable to the TFRVIEW component to control whether printing. However, adding new attributes must be destroyed in the report format, and there is a compatibility issue.

Therefore, the author adopted the existing attribute Tag using the TFRVIEW, specifying that when the content of the TAG is 'Printable = false', only the preview is not printed.

The following can make the components from TFRView implement preview failure, to implement this feature only for a TFRVIEW derived class, you can modify its DRAW process, which is allowed to leave the reader.

转载请注明原文地址:https://www.9cbs.com/read-49124.html

New Post(0)