COPY_DOC_PAGES command

Content Manager OnDemand copies the specified pages from the active document to the specified file.

Command Parameters
COPY_DOC_PAGES /P path /G page number | C /A
Parameters
P
Specifies the fully-qualified path of a file to which the pages are to be copied. If the file does not exist, it is created; if it does exist, the pages are appended to the existing file. This parameter is required.
G
Specifies the pages to be copied:
  • Specify the page number or page numbers for the pages you want to copy.
    You can specify a single page or a range of pages. You can also specify a combination of single pages and ranges of pages separated by a comma. For example,
    /G 3, 5-7, 9, 110-120
    copies page 3, pages 5 through 7, page 9, and pages 110 to 120.

If the G parameter is not specified, all pages are copied. When you specify the G parameter, you can specify the page or range of pages or the current page by specifying C, but you cannot specify pages and C at the same time.

The G parameter is optional.
C

Specify a C to copy the current page.

The C parameter is optional.

A
If this parameter is specified, the pages are copied in the data stream format; otherwise, the pages are copied as ASCII text (for AFP and line data only). This parameter is optional.
Action
If a list of pages is specified, the pages are copied in the order you specify.
Return Code:
2
ARS_DDE_RC_PARM_NOT_SPECIFIED
3
ARS_DDE_RC_INVALID_PARM_VALUE
4
ARS_DDE_RC_SERVER_ERROR
5
ARS_DDE_RC_FILE_ERROR
6
ARS_DDE_RC_NOT_LOGGED_ON
12
ARS_DDE_RC_UNAUTHORIZED_OPERATION
13
ARS_DDE_RC_USER_CANCELLED_OPERATION
14
ARS_DDE_RC_NO_ACTIVE_DOC
Return Data
None
Refer to the DoDdeCommand function.
 char parms[200];

 sprintf( parms,
          "/P %s /G 6, 3-4, 8, 112-118",
          "C:\\ASCII.TXT")

 DoDdeCommand( "COPY_DOC_PAGES", parms, NULL );