The DOCUMENTCREATEFILEOPTIONS structure specifies options used to create the output file in the L_LoadDoc function.
pDOCUMENTCREATEFILEOPTIONS is a pointer to a DOCUMENTCREATEFILEOPTIONS structure.
Setting FirstPageNumber and LastPageNumber to 0 instructs L_LoadDoc to load all the pages in the source file. Setting FirstPageNumber to 2 and LastPageNumber to 4 instructs L_LoadDoc to create a file containing 3 pages, representing pages 2, 3 and 4 from the source file.
If FirstPageNumber and LastPageNumber are > 1, they must represent existing pages in the source file. If any of either FirstPageNumber or LastPageNumber are greater than the number of pages in the source file, L_LoadDoc will fail with ERROR_INV_PAGE_NUMBERS.
Medical Web Viewer .NET