[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

771.0. "templates and print settings and page markers" by WAYOUT::ALLAMS () Mon Jun 01 1992 15:57

Hi,


	Just a quick question about templates  -

	I have a customer who has set up a 70 line template in wide screen mode
	and says that when he creates a document using this template, his new
	document is also put into wide screen mode, and the 70 lines are all
	ok and uninterupted.

	Now, when he does this (after the space of a weekend when nothing 
	happened!), his new document does not get put into wide screen mode,
	and he gets a page marker on line 58.

	Now, I have tried this, and I get the following results:

	My template is set up for wide screen, with editor attributes set to 
	80 lines/page, print settings set to 80 lines/page 0 margins.

	My print settings are all set up for 80 lines/page 0 margins.

	When I create a document, it does not put me into 132 coloumn mode
	and it puts a page marker at line 58.

	If I set wide screen mode as default, it does take me into wide screen
	mode, but I still get the page marker at line 58.


	The question is:  where does the new document get its settings from -
	in particular, the 57 lines per page, and how much of it is supposed 
	to be brought over from the template document??


		Steve Allam
		UK CSC

	This has been cross-posted in the WPS-PLUS conf.
T.RTitleUserPersonal
Name
DateLines
771.1OA$PAGE_LENGTHUTRTSC::BOSMANWe're just sugar mice in the rainMon Jun 01 1992 16:576
    Steve,
    
    Just check the special symbol OA$PAGE_LENGTH, and change it if you
    wish. I bet you get 57 the first time you do a GET OA$PAGE_LENGTH.
    
    Sjaak.
771.2WAYOUT::ALLAMSTue Jun 02 1992 12:0620
Sjaak,


	Yes I do get 57.  Where is this symbol set up, and why does it not 
	get changed by any of the print settings?  Also, my customer says
	that this 'used to work'.  Presumably the merge reads this symbol,
	and formats the document accordingly - what other symbols does it read?


	As for the 132 column mode, again, where does the merge function get 
	it's defaults from - are they from the new document, or the template 
	document, or from somewhere completely different, as per oa$page_length


		???



			Steve
771.3(-)UTRTSC::BOSMANWe're just sugar mice in the rainTue Jun 02 1992 14:4422
771.4WAYOUT::ALLAMSIf you're not confused, you're misinformed.Mon Jun 08 1992 15:0617
Ok,


	This all seems to work ok if you set oa$page_length and 
	have your settings set to wide screen, the problem is that 
	my customer insists that he has never heard of oa$page_length -
	and I did have to talk him through setting it, and that it USED
	to work ok.

	Is the guy who wrote the merge function around to describe where
	it gets all its setting from?



		Steve

771.7WPS-PLUS and MERGE settingsIOSG::NEWLANDRichard Newland, IOSG, REO1-D/4AMon Jun 22 1992 23:0141
Re: .0

There are two different types of 'print settings' involved here.  

    1.  the 'WPS-PLUS print settings', which apply only if you are
    	creating a WPS-PLUS document. 

    2.	MERGE special symbols which apply for all types of output
    	documents. 


When a new document is created and a template document is specified on the
continuation menu the initial content of the new document is the result of
processing directives from a template file (see MERGE function description
in APR for more information).  The template file can optionally contain
MERGE directives.  Specifying a template is not equivalent to making a copy
of a document and editing the output because in that case the MERGE
function will not be used. 

If you are creating a WPS-PLUS document and the template document is also a
WPS-PLUS document then the output document will have the WPS-PLUS print
settings of the template document. 

When the MERGE operation is performed the value of OA$PAGE_LENGTH
determines if page breaks are generated every OA$PAGE_LENGTH lines.  If
OA$PAGE_LENGTH is 0 then no page breaks are generated. 

A possible cause of the customer seeing a change in behaviour is that other 
applications are changing the value of OA$PAGE_LENGTH.

It may be better for the page length value to be specified in the template
document.  For example, if the template does not require page breaks then
add the the following line 

    <&OA GET OA$PAGE_LENGTH = 0>

to the beginning of the template document.  When OA$PAGE_LENGTH is set in 
this way it's original value is restored at the end of the MERGE operation.


Richard
771.8Settings from WPSDEF.WPL?SANFAN::LESLIE_DAGreetings &amp; SolutionsMon Jun 29 1992 11:2211
    Gee, this is not the behavior I found using WPS-PLUS templates in
    general.  In doing a merge of a WPS-PLUS file to a WPS-PLUS file, it
    appeared that the resulting document inherited the default file cabinet
    attributes in the user's WPSDEF.WPL file.  This was on ALL-IN-1 V2.3.
    
    This was so much so, that I had seen code which copied a WPSDEF.WPL
    file from a common area into the OAUSER directory (then deleted after
    the file was created).
    
    Maybe I missed something here (or maybe it changed in a later version)?
Dan