×
Menu
Index

EndDoc

 
 
  • EndDoc( lView [, cFileName] ) => finish all processing, and saves the file to disk.
 
 
       lView (logical) : View is a logical parameter (.t. or .f.) to view the created PDF (using registered PDF reader)
 
       cFileName (character) : File name of the saved PDF file, if none is given it will use the file name assigned by the Create() method.
 
Instead of using the registered PDF reader, you can use the :View() method to display the created PDF file, leave this parameter as False (default) and use the :View() method just after the :EndDoc() call, or change the content of :lView to True ( oPdf:lView := .t.) before to call to :EndDoc()