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

WebCommandButton.DataFileFormat Property (Publisher)

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

Sets or returns a PbSubmitDataFormatType constant that represents the format to use when saving Web form data to a file. Read/write.


expression. DataFileFormat

_expression_A variable that represents a WebCommandButton object.

Return Value



The DataFileFormat property value can be one of the PbSubmitDataFormatType constants declared in the Microsoft Publisher type library.


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. (Note that Filename must be replaced with a valid file name for this example to work.)

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