Save the current WORD document.
Syntax
CHGVAR |
VAR(&CMD) VALUE('WSAVEAS') |
CHGVAR |
VAR(&PARM1) VALUE(' File="File name" [;RecentFiles=True/False] [;Format=constant] [;OptimizeSize=True/False] [;PdfA=True/False] ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT)) |
MONMSG |
MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR)) |
Parameters
Parameters |
|
Parm1 |
File : Path and backup name of the current file. RecentFiles: True/False. If True, the saved file is added to the list of last used files. False by default. Format: wdFormatDocument, wdFormatDOSText, wdFormatDOSTextLineBreaks, wdFormatEncodedText, wdFormatHTML, wdFormatRTF, wdFormatTemplate, wdFormatText, wdFormatTextLineBreaks, wdFormatUnicodeText ... or the following keywords: - DOC If you do not set the Format parameter, then the default format of MS Word is used. Example: DOCX for Word 2010 and later versions.
OptimizeSize: True/False. False by default. This parameter is taken into account only if Format=PDF. If True, the PDF resolution and quality are optimized for on-screen viewing. The quality is less and the size is minimal. If False, the PDF is optimized for printing. The quality is optimal and the file size is larger.
PdfA: True/False. False by default. This parameter is taken into account only if Format=PDF. If True, the saved PDF will be compatible with the PDF/A-3A standard (ISO name: ISO 19005-3). |
|
Examples
1)
LNCCMD CMD(WSAVEAS) PARM1('File="c:\temp\test_wsaveas.docx";format="DOCX"')
2)
LNCCMD CMD(WSAVEAS) PARM1('File="c:\temp\test_wsaveas.docm";format="DOCM"')
3)
LNCCMD CMD(WSAVEAS) PARM1('FILE="C:\A\test.PDF";FORMAT=PDF;OptimizeSize=true')
To have a minimum PDF size, the OptimizeSize option is equal to true.
4)
LNCCMD CMD(WSAVEAS) PARM1('File="C:\temp\test\4\Doc3.pdf";Format=PDF;PdfA=true')
To have a PDF compatible with the PDF/A-3A standard.
See also