[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2592.0. "Difficulty using WPPRINT to send a document to a VMS file with device specific formatting" by NSTG::FOX (David B. Fox -- DTN 285-2091) Mon Apr 19 1993 23:00

Hi!
	I'm having trouble using WPPRINT to convert a document into a VMS file
with some device specific attributes.  For example, I want to end up with a
file that contains a document formatted with VT100 escape sequences.  I also
don't want any user interaction.  I'm therefore trying to give WPPRINT everything
it needs via the symbols.

	This is all being done in DCL via the subprocess.  I've verified that
#PRINT_DOCUMENT is getting the correct FOLDER/DOC# string.

Here are the symbols I've been trying to use:

	#PRINT_DOCUMENT = OA$CURMES
	#COPIES = 1
	#PRINT_HEADINGS = 0		! Don't want any memo header
	#PRINT_LISTFILE = <VMS filespec>
	#PRINT_MULTIPLE = 2		! This is to fake out WPPFILE to not
					! ask the user for a VMS file name.  I've
					! tried leaving this out but find the
					! user is still prompted even though I'm
					! specifying #PRINT_LISTFILE

	#PRINT_OUT_COUNT = 1
	#PRINT_OUTFILE = <VMS filespec>	! Because LISTFILE didn't seem to work
	#PRINT_PRINTER = FILE
	#PRINT_TYPE = VT100
	#PRINT_DEVICE_TYPE = VT100	! Didn't know which would work

Then I execute WPPRINT.  After a short while, I get a "Can't find document" and
no output.  If that is because of PRINT_MULTIPLE, what alternatives are there
to prevent WPPFILE from asking the question?  Do I need to CREATE the output
file before it is written to, or does ALL-IN-1 create it as well.  I've tried
pre-creating the output file to no avail.

I need this to work on V2.3 - V3.0.  I hope there's a solution for all of the
platforms!  I've been reading the documentation and both of Tony Redmond's books.
Haven't found anything to help me with this functionality.

	Thanks!
		David
T.RTitleUserPersonal
Name
DateLines
2592.1Create a print completion scriptIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Mon Apr 19 1993 23:5034
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.2It's an exercise to learn more about printingNSTG::FOXDavid B. Fox -- DTN 285-2091Tue Apr 20 1993 21:0320
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.3Creating a new destinationIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Wed Apr 21 1993 11:4927
> 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