Creating a report from a window (AREV Specific)
At 14 MAY 1999 03:57:43PM Laurie Young wrote:
I'd like to use an existing window created in Paint as a form. This seems like it should be simple but I don't see it. I'm using AREV 3.12 .
At 14 MAY 1999 04:11PM Matt Sorrell wrote:
Laurie,
Could you be a little more specific as to what you want to do?
Are you wanting to print out the contents of the window and have the hard copy look similar to the window?
Matt Sorrell
At 17 MAY 1999 07:49AM laurie young wrote:
Exactly. I have a paint window. If I don't have to recreate the whole thing as a form it would save some time. I usually just recreate the thing but I wondered if I'm missing some easy way to convert a paint window to a form.
At 17 MAY 1999 08:30AM Matt Sorrell wrote:
Laurie,
I don't think you're missing anything. The way I usually do it is to provide a hot key on the window (Shift-F1 usually), that will print the current window. Then, in a subroutine, I print out the form as it looks on screen. Of course, I have to do all of the layout myself in the print routine.
Of course, you could create a report using the report writer, and call that from your print routine, but I prefer to do it myself.
HTH,
Matt Sorrell
At 17 MAY 1999 10:06AM Michael Slack wrote:
I've never tried this myself but from what I've read between you and Matt, I had the thought that why not use the back ground information from the window to create your output. You would have to create a program to read the pertinent information from the window regarding the prompts and labels. Things like column and row coordanites. Length of display and dictionary position number. Then use the "PRINT @(column,line)" to properly place your information.
If you did write something like that, you could make it generic enough to add as a softkey to any of your windows. That way any time you modified a window you wouldn't have to go in and modify your screen print report.
Just a thought.
Michael Slack
At 17 MAY 1999 10:31AM Victor Engel wrote:
If you press ALT-P in a window, a report will be printed using the screen as a form. Try it out and see if that gets you what you need.
At 17 MAY 1999 11:06AM [email protected] - [url=http://www.sprezzatura.com]Sprezzatura Group[/url] wrote:
Copy the window to the REPORTS file with a key of FORM*windowname.
Edit the REPORTS record and insert 15 blank lines at the start of the record. The first field of the REPORTS record should start on line 16. You'll then basically have a form.
At 17 MAY 1999 11:47AM Warren wrote:
Probably age induced dilerium (formerly known as senile dementia, now commonly refered to as Alzheimer's) didn't there used to be an import function for this prior to 2.1x?
At 17 MAY 1999 12:18PM [email protected] - [url=http://www.sprezzatura.com]Sprezzatura Group[/url] wrote:
I seem to recall it just being a matter of copying the window from TEMPLATES to REPORTS without any changes in record structure or key. Since it was so simple, perhaps someone once created a quick copy program.