Paulo_Rocha Posted July 3, 2012 at 07:51 AM Report Share #466963 Posted July 3, 2012 at 07:51 AM Boas pessoal, Eu quero guardar um ficheiro exel com a datagrid, já o consigo fazer mas gostava de utilizar o save file dialog para dar ao seguinte código a posição para a qual eu quero o ficheiro de saida. System.IO.StreamWriter streamWriter = new System.IO.StreamWriter("C:\\output.csv"); Alguem me pode ajudar. Cumprimentos Paulo Rocha Link to comment Share on other sites More sharing options...
Paulo_Rocha Posted July 3, 2012 at 08:24 AM Author Report Share #466966 Posted July 3, 2012 at 08:24 AM Já resolvi, o save dialog retorna a pasta de destino para this.saveFileDialog1.FileName logo System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.saveFileDialog1.FileName); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now