views – Programatically export data to CSV from custom field drupal 6

I have content type e.g EXAMPLE i want to export data to CSV, but in the view i cannot find the custom field i have created in content type i.e FIRTNAME and LASTNAME, so i want to create a module for that.
any help would be really appreciated.
Thanks