IPropertyBag Interface
Collapse the table of content
Expand the table of content

IPropertyBag Interface

Office 2007
Implemented to create a read-only object to contain printer settings for passing to the Import method of a custom data importer.

Version Information
 Version Added:  InfoPath 2007


An implementation of the IPropertyBag interface should expose the following values.

PageSizeReturns an unparsed string corresponding to the current page size, such as "A4", "B4", "Letter", and so on.
TopMarginThe size of the top margin.
BottomMarginThe size of the bottom margin.
LeftMarginThe size of the left margin.
RightMarginThe size of the right margin.
MarginUnitsTypeThe type of unit used for measuring margins.
Bb251042.vs_note(en-us,office.12).gif  Note
These values will not be available if the user has no installed printers.

This object or member is used for extending the InfoPath application and is not intended to be used directly from your form code.

A custom data importer is created by implementing the IInfoPathDataImporter interface. For more information about programmatically importing data into an InfoPath form, see the InfoPath Developer Portal on the Microsoft Office Developer Center.

© 2015 Microsoft