csr
Programmer
- Jul 20, 2000
- 507
I wish to preview my reports in a window placed on the desktop. So, this is what I thought would do that.
Well, it almost works.
Without going through all my problems with this, does anyone see anything wrong with this function I have created ?
FUNCTION previewReport(cReportName)
LOCAL nPreviewScreenWidth, nPreviewScreenHeight
nPreviewScreenWidth = 130
nPreviewScreenHeight = 50
DEFINE WINDOW wPreview FROM 1,1 TO nPreviewScreenHeight,nPreviewScreenWidth IN DESKTOP
ACTIVATE WINDOW wPreview
REPORT FORM (cReportName) NOCONSOLE PREVIEW IN WINDOW wPreview
RELEASE WINDOWS wPreview
RETURN .t.
Don
Well, it almost works.
Without going through all my problems with this, does anyone see anything wrong with this function I have created ?
FUNCTION previewReport(cReportName)
LOCAL nPreviewScreenWidth, nPreviewScreenHeight
nPreviewScreenWidth = 130
nPreviewScreenHeight = 50
DEFINE WINDOW wPreview FROM 1,1 TO nPreviewScreenHeight,nPreviewScreenWidth IN DESKTOP
ACTIVATE WINDOW wPreview
REPORT FORM (cReportName) NOCONSOLE PREVIEW IN WINDOW wPreview
RELEASE WINDOWS wPreview
RETURN .t.
Don