export feature layer (joined with table) to shapefile programmatically

1321
2
09-17-2012 03:39 PM
by Anonymous User
Not applicable
Original User: helenchu

All,

My feature layer is joined with a table.  When I do export by using

                    pExportOp.ExportFeatureClass(pInDsName, Nothing, pSelSet, Nothing, pOutDatasetName, 0)

it doesn't include fields from the table.  Is there a way I could set to make it include those fields?
In Arcmap application, when you do data->export you have 2 options: 1/this layer's source data or 2/ the data frame
So in my codes, it must be using "the data frame" option. 
How do I make it use the "layer's source data" ?

Thank you,
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: petronilamandeno

I don't have an answer for your main question (exporting the joined table to a shapefile programmatically), but I think you are confusing what the question is asking when you export from within ArcMap:

[ATTACH=CONFIG]17749[/ATTACH]

It is asking you wither you want to export the data in the same coordinate system as the layer or the data frame. I don't think that has anything to do with the joined table.

Good luck in figuring out how to do that via code.
0 Kudos
helenchu
Occasional Contributor II
You're absolutely right.  I was playing around and I guess it's been a long day.  My head just spinned.  Thank you for pointing that out.
0 Kudos