Table of contents
Collapse the table of content
Expand the table of content

WebCommandButton.DataFileName Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns or sets a String that represents the name of the file in which to save data from a Web form. Read/write.


expression. DataFileName

_expression_A variable that represents a WebCommandButton object.

Return Value



This example sets Microsoft Publisher to process Web form data by saving it to a comma-delimited text file on the same Web server as the form is stored.

Sub WebDataFile() 
 With ThisDocument.Pages(1).Shapes(1).WebCommandButton 
 .DataRetrievalMethod = pbSubmitDataRetrievalSaveOnServer 
 .DataFileFormat = pbSubmitDataFormatCSV 
 .DataFileName = "WebFormData.txt" 
 End With 
End Sub
© 2018 Microsoft