[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

725.0. "Predefining print settings oa$wpl_put_pm" by ODIXIE::BIRCH () Wed May 20 1992 15:30

Using the symbols OA$WPL_PUT_PM and OA$WPL_GET_PM I am trying to pre-define 
the Print margin when printing a document without the user needing to change 
it on the page layout (WPARG2) screen.  The problem is the PM field (PM_FLD)
doesn't pick up the value I set in OA$WPL_PUT_PM (Which of course comes from
OA$WPL_GET_PM with a /Get_save).  The one exception to this is if I set the 
value while on the WPPARG1 screen. (called from WPPARG with a next screen).  
It seems that something resets the value, ignoring OA$WPL_PUT_PM.  

The bottom line is I need to be able to print a WPL file with a 6 space
right margin while still allowing the user to change it, but not requiring the
user to change it.
            
Thanks

MB
T.RTitleUserPersonal
Name
DateLines
725.1Ah well, those symbols do behave oddlyIOSG::SHOVEDave Shove -- REO-D/3CWed May 20 1992 15:4524
    Others probably understand this better than I, but . . .
    
    The problem is that the WPPARG* forms are called directly from the
    formatter. It only looks at the symbols OA$WPL_PUT* after it gets
    control back from those forms, so anything you do them anywhere else
    will have no effect.
    
    Can't you do what you want by using a Print Setting (as in PS 1 though
    9)? The FORMAT function lets you specify a Print Setting number to use
    (see APR). You'd need to customise one or more of WPPRINT.SCP,
    FILEFORMAT.SCP (see description of #FILEFMT_QMENU symbol in that one)
    or WPSPLUS_FORMAT.SCP. 
    
    And of course arrange for the appropriate print settings to be stored
    in the WPSDEF.WPL file for each user - you could make the changes to a
    new copy of WPSDEF.WPL (from OA$LIB_LLV:) and then copy that to all
    your users - and back to OA$SITE_LIB_LLV so newly created users would
    get it too). You might want to customise WPPAGR* to stop users changing
    the print setting you'd modified too (make it PS 9 and change the
    validation to make them only use 0 to 8, for example).
    
    Hope this gets you started,
    
    Dave.
725.2A questionIOSG::NEWLANDRichard Newland, IOSG, REO1-D/4AThu May 21 1992 11:329
From your question in .0 I'm not clear about what you want to do.

Do you want to create a particular .WPL file which has the print margin set
to 6, or do you want all .WPL files to print with a print margin of 6
unless changed by the user?  


Richard

725.3Override the settings in the .wpl fileODIXIE::BIRCHThu May 21 1992 17:1415
    .2 - I have an application that creates a document from data input to a
    form.  The users have printers that need a left margin set to 10 or
    better.  If I store the left margin in the file as 10 spaces then the 
    read function (DO WPLIST) also displays the 10 spaces and the text 
    goes off the right side of the screen.  If I put 0 spaces in WPL file 
    (left margin), the read looks good but the printing doesn't start in 
    the correct place.  Of course the user can manually ajust the print 
    margin but many of them are just not that bright.
    
    Secondly we have a problem where users will set a left margin (so they
    can print the document of their printers), and then mail the document
    to another user.  The recieving user goes to print the file on a
    standard printer and the print function picks up the spaces put in by 
    the originator.  I would like to provide a "Print with standard
    settings" function to overide the settings put in by the originator.
725.4How about this?KURTAN::WESTERBACKMimsy were the borogrovesThu May 21 1992 23:458
    I'm not sure if I follow you completely, but if the problem is that
    you want the documents printed on a certain printer to always start
    printing further to the right, i.e. move the printable area to the
    right, this can be done with WPS-PLUS 4.0 by adjusting the PRA file
    entry for Horizontal Positioning. 
    
    HTH
    Hans
725.5And on a similar trackNEWOA::UWINSSet Profile/Pers=RecursiveFri Jul 03 1992 16:0822
	Not wanting to start a new note because I have a similar problem...

	How do I get the output from the FORMAT function *not* to produce 
	a form feed every n lines (where n = oa$wpl_get_pl)?

	If I use the printer tables VT%00.PRA, no <FF> character is produced
	in the output from the FORMAT function, even when a "real" new page
	character is found.

	Where as if I use A1TEXT or LA75 (or my own defined one!) I get form 
	feeds every oa$wpl_get_pl lines even though the printer tables define 
	the number of lines to a page to be 0 in each case. I use a printer
	setting that has the Auto Paginate flag set to "N", and the WPS-PLUS
	document has "N" for its AP flag as well. 

	I also tried setting the lines per page in the PRA file to 32767, 
	but still no luck. 

	I can't use the VT%00.PRA files as I need to be able to recognise
	when a "real" new page has been entered.

	Any ideas?