Please enable JavaScript to view this site.

TIFF Image Printer

Navigation: Automating the Printing Process > Using the PNSrv12 COM Object > PNSrv12Lib Object Reference > IPNSession > Property Methods

SetSaveOptionsOutputLocationAndOutputFileName

Scroll Prev Top Next More

Description

Modifies the file save options for the output directory and output filename on the IPNSession object. Overrides any conversion setting from the profile passed in the SetSessionPrinter or the SetPrinterProfile method.

To set a single save option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.

Syntax

expression.SetSaveOptionsOutputLocationAndOutputFileName(OutputLocation,

                                                         OutputBaseFileName)

where expression is an IPNSession object.

Parameters

String OutputLocation

Pass the fully qualified path to the directory for storing the output your files. Pass this string as empty to use any OutputLocation setting from the conversion profile. If no location is set in the profile, the last used folder is used as the default directory when running in an interactive process on the desktop. If there is no last used folder, the My Documents folder is used. When running non-interactively, such as in the Task Scheduler or a Windows service, the My Documents folder for the running process is always used if this string is empty.

String OutputBaseFileName

This is the base filename for your output file. The base filename excludes any directory path and file extension. If you want your output files to always be saved under the same filename, enter that name here. Pass this string as empty to use the base filename from the conversion profile. If no basename is set in the conversion profile, the print job name set by the printing application when submitting the file to the printer is used instead.

Remarks

Use the following to set these options using SetProperty:

Method Parameter

SetProperty Parameters

OutputLocation

SectionName:

Save

PropertyName:

Output directory

varValue:

VT_BSTR, as above

OutputBaseFileName

SectionName:

Save

PropertyName:

Output filename

varValue:

VT_BSTR, as above

Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer

See Also: SetSaveOptions SetSaveOptionsOutputResolution SetProperty