Greetings...
I have this client who would like to move a mountain of Excel based "forms" (really just workbooks with row-by-row data) to InfoPath. I am no InfoPath wizard by any stretch, but I do work in Visual Studio 2005 and write most code in VB.NET. I have set up a VB.NET app for them that allows them to select a spreadsheet, and then the specific sheet that has their data. I then list the column headings in the selected sheet in a listbox. Now here's the part where I am somewhat baffled...
I want to allow them to pick an already-designed InfoPath template (.XSN) and then allow them to "map" the Excel columns to the InfoPath Object names. So to do this, I need a way to query the XSN and get a list of Object names. (Most, if not all will be textboxes - no fancy stuff at this point). I loaded the Interop lib for InfoPath to see if I could use that to get at this data, but as yet, cant figure out a way to get those names.
Any of you InfoPath Gurus know how I might do this quick and easy?
Note - (with respect) please do not suggest using the InfoPath "Import Form" option - they tried this and it just gave them endless repeating tables. That is not what they are after at all. They want a single form for each row of data in the Excel Workbook.
Thanks very much in advance!!