T.R | Title | User | Personal Name | Date | Lines |
---|
2592.1 | Create a print completion script | IOSG::NEWLAND | Richard Newland, IOSG, REO2-G/L2 | Mon Apr 19 1993 23:50 | 34 |
| WPPFILE, as currently written, will always ask the user for the name of
the output file.
#PRINT_LISTFILE specifies the name of the file created by the formatting
stage of the print operation. It is not the name of the final output file
of a Print to FILE operation.
The comments in WPPRINT list the input symbols and output symbols. All
other symbols are internal to WPPRINT. You are setting some internal
symbols, e.g. #PRINT_LISTFILE, which probably will have no affect. Setting
#PRINT_MULTIPLE to 2 when it has never been 1 will may cause other things
to fail.
An alternative way of doing what you want would be to create a new print
completion script, and associated Print Destination. The print completion
script can be based on WPPFILE, but would get the name of the file from a
symbol that you set before calling WPPRINT.
You should be aware that you cannot guarantee that every message or it's
attachments will be formatted to have VT100 escape sequences. This is
because the 'device type' (VT100) is passed to each formatter called to
format each revisable attachment, but it is up to each formatter to decide
what to do with parameter. The ALL-IN-1 ASCII formatter ignores this
parameter because it only produces LP11 style output. CDA formatters
produce either PostScript or Text output.
Could you describe in more detail what you are trying to do, and what type
of messages you want to be able to handle.
Richard
|
2592.2 | It's an exercise to learn more about printing | NSTG::FOX | David B. Fox -- DTN 285-2091 | Tue Apr 20 1993 21:03 | 20 |
| Richard,
As an exercise, I'm playing around with the foreign mail destination
support. What I'd like to do is to be able to take a document, along with the
possibilities of attachments, and format it with device characteristics of my
choosing (VT100, LN03, Postscript, etc.). I want that in a VMS file so that
I can use it with VMSmail or some other application for further formatting or
use. I want the escape sequences in the file so that I still get bolding,
underlining, etc. I had thought using WPPRINT was the way to go so that I could
easily handle the possibility of attachments.
If I modify a copy of WPPFILE and call it something else, I should be
able to do what I want. That would mean creating a new destination device in
the master files. Would I just copy the FILE definition and replace WPPFILE
with whatever I call my new script?
As for the "can't find document" error... do you think that that is being
caused by PRINT_MULTIPLE being set to 2?
Thanks!
David
|
2592.3 | Creating a new destination | IOSG::NEWLAND | Richard Newland, IOSG, REO2-G/L2 | Wed Apr 21 1993 11:49 | 27 |
| > I had thought using WPPRINT was the way to go so that I could
> easily handle the possibility of attachments.
I agree, using WPPRINT is a convenient way of getting attachments processed.
> If I modify a copy of WPPFILE and call it something else, I should be
> able to do what I want. That would mean creating a new destination device in
> the master files. Would I just copy the FILE definition and replace WPPFILE
> with whatever I call my new script?
Yes. You should call WPPRINT with #PRINT_PRINTER set to your new Print
Destination, and #PRINT_TYPE set to the Print Style (e.g. LN03, PS) that
you want to use.
> As for the "can't find document" error... do you think that that is being
> caused by PRINT_MULTIPLE being set to 2?
What version of ALL-IN-1 are you using? I got a different error using a
development base level of a PFR. WPPRINT is written assuming that
#PRINT_MULTIPLE will initially be '1', which causes it to do the things it
only needs to do the first time. It leaves other symbols set to pick up
information when #PRINT_MULTIPLE is greater than 1.
Richard
|