MS project - how do i create a resource sheet using c#

I am creating an add-in for project2007 pro in c#  that imports data from a excel sheet -
I havemanaged to create the tasks ok but am having trouble with getting the task resource names and work hours to load, no matter what i do that just create as as blank fields.
I think its because i need to create a resource sheet first - but i can't find what the requirements are for creating the sheet..
can anyone point me in the right direction on how to do it or any info on coding add-ins for project that might help please.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You are using the Project Object Model to do this, correct? (Versus using Project Server and the PSI.)

Adding resources to a project is similar to adding tasks. If Project is not connected to a server, you should be able to simply add resources, and they will get added as local resources. The Project object has a resources property:

When a resource is connected to a task, that is called an assignment. So you need to first have tasks and resources then you create assignments to connect the one to the other.

Let me know if I'm headed the right direction to help you here...
James Fraser

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.