Hi again,
I have a question. I am trying to replicate some of the functionality we currently have (via the automation interops) in extracting data from the Microsoft Project TaskUsage view.
My question is this… If I had code like this:
TaskUsageView vw = (TaskUsageView)(prj.Views.ToList()[3]); //magic #
Aspose.Tasks.Table tab = vw.Table;
TableFieldCollection cols = tab.TableFields;
List flds = cols.ToList();
Is there any way to iterate over the “rows” in this Table to get the values for the TableFields for each “row”? Nothing obvious jumps out at me from the Table object.
Just trying to understand the Aspose.Tasks object model…
Thanks,
Doug
Hi Doug,
Thank you for writing to Aspose Support team.
Table data can be read as shown in our
documentation article that is related to view data such as column names, width and so on. Do you need to retrieve this information or values of a task or assignment? In the lateral case, you need to retrieve the values using Project.RootTask.Childer or Project.ResourceAssignment collection. Please share your feedback with us for further assistance.
Muhammad,
I apologize. I failed to read your entire response. Let me go work on this for a while!
Thanks again,
Doug
Thank you for the link. I see that I can extract data regarding the Fields (or columns) of the Table. How can I extract the values of these Fields for the “rows” in the Table? I do not see any properties or methods on the Table of TableField objects that appear to enable this…
Thanks,
Doug
Hi Doug,
Thank you for providing feedback and feel free to write us back for any other query related to Aspose.Tasks.