Database aware reportview
By Wil van Antwerpen
The dbreportview subclass has some small updates. First of all there was a small buglet
in the .dfc file that would stop the IDE from compiling it if you didn't include the
pakcage file in your own version of the dfallent. This flaw has been solved.
There is a code-cleanup in the template and we've added a small example to show you how to
use this subclass.
The current release of this subclass contains:
- a template to easily create your own (db)reportviews. To use this copy the file
"dbAware blank ReportView.tpr" to the folder ..\vdf6\usr\global\IdeSrc. This
file puts a new template under the New Components option in the IDE.
- a .dfc file, so the IDE knows what a dbreportview is. Copy this file to the same folder
and add it to the IDE with the maintain classlists function. (Tools menu ->maintain
classlists ->first tabpage (global) -> ADD ->Name: dbreportview ->File:
dbreportview, do not enter anything in the Image and Page fields)
- a package file called dbRptVw.pkg. Copy this file to your global packages folder or to
test it copy it to the folder ..\vdf6\examples\order\appsrc
- an example that shows you what it does and how it works. This example makes use of the
Winprint engine and prints the results of what you select to the screen. It would have
been just as easy to create a report with Crystal reports, but we decided to use Winprint,
because this can be run on any version of VDF, even on an evaluation release.
You can register this example in the order entry workspace. (Copy the file
CustSelReport.rv to the folder ..\vdf6\examples\Order\AppSrc and use the Register External
components function in the IDE)