| Hi,
I've written a little DCL procedure for your problem, but
as mentioned in .1 you need ALL-IN-1 !
Have fun
Charly_from_Vienna
$! Procedure: A1_FORMATTER_PRINT.COM
$! by Author: Karl Ehrlich
$! written on: 04-Jun-1992
$! modified on: 04-Jun-1992
$! Purpose: Print a Document directly to OA$FORMATTER
$!
$!
$ a = f$verify(0)
$ set noon
$ if p1 .eqs. "" then read /prompt="Enter Destination-Queue " SYS$COMMAND P1
$ if p1 .eqs. "" then exit
$ if p1 .eqs. "help" then goto help
$ if p2 .eqs. "" then read /prompt="Enter Formatting PRA " SYS$COMMAND P2
$ if p2 .eqs. "" then exit
$ if p3 .eqs. "" then read /prompt="Enter Filename to print " SYS$COMMAND P3
$ if p3 .eqs. "" then exit
$!
$ if f$search("''p3'") .eqs. "" then goto fnf
$!
$ print /queue=oa$formatter -
/para=("OA$PARAMS=100,''p1',''p2',1","OA$FMTCTL=2") 'p3
$ exit
$help:
$ type sys$input
!
! OA$PARAMS=Flags,Queue[:],Device,Copies[,Form][,Tables]
!
! OA$FMTCTL=Format Control String
! where:
! Flags = each byte is used as follows (1 = set)
! Byte 0 - /NOTIFY flag
! Byte 1 - $REMOVE_BLANKS flag
! Byte 2 - /FORM specified flag (old method)
! Queue = Print queue to submit formatted output files to
! Device = Device Type, for WPS-PLUS formatting
! Copies = Number of print copies
! Form = Name of Print form - optional (new method)
! Tables = Directory of user WPL$PRT files (WPS-PLUS V4.0)
!
! Format control string - contains a byte for each file specifying
! the type of formatting:
! 0 = No formatting
! 1 = ASCII formatting
! 2 = WPS-PLUS formatting
! Example:
! /PARAMETER="OA$PARAMS=100,SYS$PRINT,LP11,1,LANDSCAPE","OA$FMTCTL=12"
$exit
$fnf:
$ write sys$output "%FORMAT-F-FILNOTFND, File ''p3' not found "
$ exit
|
| Another way is to do a Print to FILE. The WPS-PLUS document will be
formatted and the resulting listing file will then be copied to a VMS file.
The Format style field on the Print Document form will determine the type
of listing file produced, e.g. LP11, LN03, etc. If you mail the file you
should select a style which all the recipients are able to print. A style
of LP11 will retain underlining and bolding. A style of LN03 will retain
other attributes if they have been used in the original WPS-PLUS document.
Richard
|