Cannot add fields to TableBox using the automation interface
I try to use Automation interface to create tablebox and add fields to it from a simple external program written in c#. I use QlikView type library integrated in the QlikView.exe file.
After reloading data, I have two fields (apart from system fields) available in my ActiveDocument: "col_id" and "name". I've checked it using IArrayOfFieldDescription object. Then I try to add both fields to the tableBox: table.AddField("col_id"); Ok, no error. Then i try to add second field: table.AddField("name"); or e.g. remove the first field: table.RemoveField(0); or table.GetField(0); These all result in "W wyniku wywo?ania sk?adnika modelu COM zosta? zwrócony b??d HRESULT E_FAIL." error.