home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!uchinews!gsbacd.uchicago.edu!cs_mj
- From: cs_mj@gsbacd.uchicago.edu (Mark Jaeger)
- Subject: Re: General Print Form Routine
- Message-ID: <1992Jul30.145859.1@gsbacd.uchicago.edu>
- Lines: 38
- Sender: news@uchinews.uchicago.edu (News System)
- Organization:
- References: <1992Jul30.183629.6079@schaefer.math.wisc.edu>
- Date: Thu, 30 Jul 1992 20:58:59 GMT
-
- In article <1992Jul30.183629.6079@schaefer.math.wisc.edu>,
- horn@schaefer.math.wisc.edu (Jeffrey Horn) writes:
- > I am looking for a general routine to print any given simple form to a
- > file or printer. Call a simple form, a form that has a set of simple
- > fields on the top part of the form and bolow them (possibly) a table field.
- > The form could be of arbitrary width and height. What I want is a routine
- > that would get the position and size of all the fields, titles, trim, etc.
- > and print them spaced as they are on the form. The routine would then
- > unload ALL the data in the table field and print it as it appears in the
- > columns on the form.
-
- It sounds like you've already covered all the bases. The "printform"
- command doesn't do what you want, because you want a picture not of the
- form itself, but rather of what is on the screen after the application
- has displayed and filled in the form and the user has possibly changed
- it. The FRS "printscreen" function (maps to ^G on many terminals) only
- prints what appears on the screen, not the underlying stuff in the table
- fields.
-
- > The current print routines provided by ingres only print the visible
- > rows in a table field. If I get no replies I plan to write such a
- > generic print form in embedded C.
-
- This sounds challenging. You probably won't be able to use "formdata"
- and "tabledata" to do it, because the former can't appear in the display
- loop for the form, so you'll probably have to use "describe form" and
- "describe table" and lots of "inquire_frs".
-
- It seems like the hardest part will be reproducing the part of FRS that
- takes a field (or column) format and a value and converts it to a
- display value. It's too bad INGRES doesn't provide such a function.
-
- --Mark Jaeger internet: cs_mj@gsbvax.uchicago.edu
- Graduate School of Business yellnet: (312) 702-0328
- University of Chicago faxnet: (312) 702-0233
- Disclaimer: My opinions are my own and not those of my employer.
- Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
-
-