Transform xsl file to xml file programmatically

M

m.ahrens

Hi all

I have an xsl file and would like to transform it into an xml file. The same
way as if i would open the xsl file in excel and then save as... xml file
(Office 2003).
is there a way to do it in c#(or whatever else) in visual studio .net?

and how can i then transform it back from xml into an xsl file?

thanks for your help
m.ahrens
 
M

Myrna Larson

I assume you mean an XLS file (rather than XSL). Can't you access the Excel
object model, open the workbook, then use SaveAs?, i.e.

ActiveWorkbook.SaveAs FileName:="TheName.xlm", FileFormat:=xlXMLSpreadsheet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top