Setting Custom File Paths and Names

Incorrect file locations, names, or both are the probable outcome when users must type or navigate to the path and type file names for InfoPath documents. The UI item in Table 16-3 briefly describes the SetSaveAsDialogLocation and SetSaveAsDialogFileName methods. You can hard-code the path or, for forms that aren’t custom-installed, specify the current template file’s location by making a minor modification to the XDocument.Solution.URI property value, which returns the path and file name of the form’s template. Automatically generating unique file names with date/time values or from unique form field values—such as an order or invoice number—minimizes file-naming errors. You invoke the two SetSaveAsDialog ...

Get Introducing Microsoft® Office InfoPath™ 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.