User Tools

Site Tools


changing_20the_20document_20name

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
changing_20the_20document_20name [2018/03/31 13:19] – external edit 127.0.0.1changing_20the_20document_20name [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, April 2010//\\ \\  When you output to a printer from a BBC BASIC program the 'document name' is set to **BBC BASIC output**. The principal purpose of this name is to identify the print job in the Print Manager's list of queued documents. For example if you need to delete the document from the queue you can identify it using this name.\\ \\  Normally the users of your program will never be aware of the document name and there should be no need to change it. However when printing to a PDF file (see [[/Creating%20PDF%20files|Creating PDF files]]) the name may be used as the default file name; in that case it might be desirable to set it to something different.\\ \\  To change the document name call the procedure **PROCstartdoc** before you output the first character to the printer. The required document name should be supplied as the parameter of the procedure, for example:\\  //by Richard Russell, April 2010//\\ \\  When you output to a printer from a BBC BASIC program the 'document name' is set to **BBC BASIC output**. The principal purpose of this name is to identify the print job in the Print Manager's list of queued documents. For example if you need to delete the document from the queue you can identify it using this name.\\ \\  Normally the users of your program will never be aware of the document name and there should be no need to change it. However when printing to a PDF file (see [[/Creating%20PDF%20files|Creating PDF files]]) the name may be used as the default file name; in that case it might be desirable to set it to something different.\\ \\  To change the document name call the procedure **PROCstartdoc** before you output the first character to the printer. The required document name should be supplied as the parameter of the procedure, for example:\\ 
 +<code bb4w>
          *PRINTER DoPDF v7          *PRINTER DoPDF v7
          *MARGINS 10,10,10,10          *MARGINS 10,10,10,10
Line 9: Line 10:
          VDU 1,12,3          VDU 1,12,3
          END          END
 +</code>
 The **startdoc** procedure itself is as follows:\\  The **startdoc** procedure itself is as follows:\\ 
 +<code bb4w>
          DEF PROCstartdoc(docname$)          DEF PROCstartdoc(docname$)
          LOCAL docinfo{}          LOCAL docinfo{}
Line 22: Line 25:
          SYS "SetBkMode", @prthdc%, 1          SYS "SetBkMode", @prthdc%, 1
          ENDPROC          ENDPROC
 +</code>
changing_20the_20document_20name.1522502348.txt.gz · Last modified: 2024/01/05 00:18 (external edit)