[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

3613.0. "FORMAT.DAT, Attachments and Printing" by LARVAE::JORDAN (Chris Jordan, TSE - Technology Services, End-User Computing) Wed Dec 01 1993 12:07

    I have a document in my File Cabinet as FORMAT/HANDLING of AMIPRODOC.
    
    I have modified FORMAT.DAT to include a LIST function that calls my
    own program, and displays the text of the document to the user.
    
    2 questions:
    
    	How do I get my program to be called if the AMIPRODOC document is
    sent to another user, and therefore is an ATTACHMENT, rather than the
    main document.?
    
    	I also have a printing routine - that wants to take the ORIGINAL,
    unchanged AMIPRODOC file, and process it somewhere else. If I modify
    the PRINT function in FORMAT, it doesn't seem to get called by the
    WPPRINT.SCP until too late through the process. I would like it called
    (like the LIST function) right up front, before ANY other form is shown
    to the user.... How?
    
    Cheers, Chris Jordan
T.RTitleUserPersonal
Name
DateLines
3613.1Print to TERMINALIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Wed Dec 01 1993 19:0018
Mail messages and their attachments are listed via the compound text
dataset.  This does not fully format the message or the attachments.  If
you do a Print to TERMINAL then the message and each attacment will be
individually formatted and displayed on the terminal. 

The PRINT function is used by the Print sub-system to define how a document
should be 'formatted' during a print, and also during a LIST if a separate
READ function is not defined.  PRINT and LIST use the PRINT function in the
same way.  However, with LIST you do not need to ask the user where to list
to, because the current terminal is always assumed. 

It sounds like what you want your PRINT to do is sufficiently different
from the standard Print sub-system that you will have to do some further 
customization.  Could you describe in more detail what you want your PRINT 
option to do.


Richard
3613.2BGas again...LARVAE::JORDANChris Jordan, TSE - Technology Services, End-User ComputingTue Dec 07 1993 22:0720
    With FORMAT.DAT and the LIST function option in there, I can launch a
    separate program to view my AMIPRODOC document. This separate program
    is a "C" program that opens up OA$CURDOC_FILENAME, searches through it
    for the start of the Ami Pro text, and then shows that text on the
    screen.... all pretty automatically as afr as the user is concerned.
    
    I want to do something MORE special with the PRINT option. Before
     ALL-IN-1 or anything gets near the file, I want to copy the
    OA$CURDOC_FILENAME to a different directory on the VAX, where a WIndows
    PC is looking to see if any .SAM files exist. These will be File\Opened
    by Ami Pro, which will then initiate the print....
    
    (Result - Read shows the text... Print is the full, unconverted,
    unaltered Ami Pro document ).
    
    BUT , by using the FORMAT.DAT Print option, I don't seem to be able to
    get at the file before ALL-IN-1 starts doing some of its pre-amble
    printing options...
    
    Cheers, Chris
3613.3More questions...IOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Wed Dec 08 1993 10:109
If I understand .2 correctly you want Ami Pro to perform the print.  At
what point, if at all, do you want the ALL-IN-1 Print sub-system called? 

The FORMAT master print function is used by the Print sub-system to define 
how to format a file.  It's not designed to launch a completely different 
printing mechanism, which it sounds like you are trying to do.


Richard
3613.4LARVAE::JORDANChris Jordan, TSE - Technology Services, End-User ComputingWed Dec 08 1993 17:239
    You are right... trying to do things totally outside ALL-IN-1, I don't
    want ANY of the sub-system in this instance . 
    It works OK for read.... but not for print...
    
    It sounds like I will need a separate option.... oh well, that means I
    have to modify all 120 sites with a customisation upgrade, rather than
    just shipping 1 script and getting someone to update FORMAT.DAT...
    
    Cheers, Chris