This file is copyright 2004 by Shawn L. Church. Permission to copy, use,
and distribute this file is granted in accordance with the wxWidgets license
agreement found at https://www.wxwidgets.org/about/licence/
This module implements python bindings to the ReportMan ActiveX control.
For more information on ReportManager see: http://reportman.es
Limitations: Currently implemented for Windows only although Linux should work with
a change to the _rp_lib= statement to reference the Linux shared library for Report Manager.
INSTALLATION: 1) Install ctypes module if necessary.
2) Copy reportman.py to Python site-packages directory
TODO: 1) Implement Cross-platform compatibility with Linux. Should also
also implement MAC compatibility but I have no way to test this.
2) Add capabilities to export other ReportManager-supported file types
such as excel, CSV, text, etc.
3) Add remote printing capabilities.
USAGE: 1) Import reportman module
2) The ReportMan class is provided for general use. It takes
care of opening and closing the report handle.
3) The rp_* functions are available for low level access to the
Report Manager API.
Implements wrapper class around Report Manager ActiveX control.
Usage:
Py 0.9.4
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from reportman import ReportMan
>>> report=ReportMan("c:\test.rep")
>>> report.set_param("title", "This is the report title")
>>> report.preview()
>>> report.execute() # produces test.pdf in same directory as test.rep
>>> report.execute(metafile=True) # produces test.rpmf in same directory as test.rep
>>> report.execute("c:\report.pdf") # Produces c:\report.pdf
>>> report.params
['TITLE', 'DATETEST']
>>> ...
filename=name of report file (defaults to report file name+.pdf/.rpmf)
metafile=True to produce Report Manager meta-file or false for PDF.
compressed=True to produce compressed file output.
title=Caption to appear in status dialog.
showprogress=True to show status dialog.
showprintdialog=True to show standard printer dialog before printing report