- Download and install the SAS Universal Viewer from the SAS support site
- Create a new project in Visual Studio
- Add a reference from the SAS Universal Viewer install files to the following 2 dlls
- Use the following C# code (adapt as needed):
TransportFile tf = new TransportFile(@"x:\temp\sample.xpt");
var x = tf.Datasets;
Your dataset will be in variable x
Don't forget to add the using statement to the top of your code for the SAS.UV.