Community
I can't find any C++ sample of calls to put_DefaultRow for an iPartFactory.
What I'm not sure about is the correct type of the argument, presumably a string...
CComPtr<iPartFactory> piPartFactory = nullptr ; pPartCompDef->get_iPartFactory (&piPartFactory) ; piPartFactory->put_DefaultRow (...?...)
Hi
Sorry that I don't have a C++ sample ready to provide, but the default row argument is an iPartTableRow. Here is a VBA sample:
Public Sub DefaultRow() Dim doc As PartDocument Set doc = ThisApplication.ActiveDocument 'Back up the current DefaultRow Dim row As iPartTableRow Set row = doc.ComponentDefinition.iPartFactory.TableRows(1) 'Execute some code... 'Re-set the default row doc.ComponentDefinition.iPartFactory.DefaultRow = row End Sub
Regards,
Philippe
______________________________________________________________
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!