PSSetFileName()

Syntax

Function PSSetFileName(cFileName)
TPageScript:SetFileName(cFileName)

Returns

NIL.

Description

Use PSSetFileName() to set the name of the PDF file that will be created when printing using the DEV_PDFFILE device (see PSSetDevice() for more information). If no file name is set before printing to a PDF file, PageScript will name it ".\Untitlednnn.pdf", where nnn is a numeric value incremented by one every time a new print job is sent to the PDF device.

Arguments

cFileName Name given to the pdf file. Relative paths are supported.