Como inserir no C#
05/07/2012
0
Como faço essas linhas abaixo funcionar no C# com VS2010?
ObjWord = CreateObject(Word.Application);
ObjWord.Documents.Open(DiretorioDestino);
ObjWord = CreateObject(Word.Application);
ObjWord.Documents.Open(DiretorioDestino);
Pjava
Curtir tópico
+ 0
Responder
Posts
06/07/2012
Valter Furtado
tenta assim rs
this.Response.Clear();
this.Response.AddHeader(Content-Disposition, attachment; filename= + Guid.NewGuid() + .doc);
this.Response.AddHeader(Content-Length, fi.Length.ToString());
this.Response.ContentType = application/vnd.ms-word;
this.Response.WriteFile(fi.FullName);
this.Response.Flush();
this.Response.Clear();
this.Response.AddHeader(Content-Disposition, attachment; filename= + Guid.NewGuid() + .doc);
this.Response.AddHeader(Content-Length, fi.Length.ToString());
this.Response.ContentType = application/vnd.ms-word;
this.Response.WriteFile(fi.FullName);
this.Response.Flush();
Responder
06/07/2012
Joel Rodrigues
CAra, o que é exatamente que não está dando certo? Você fez referência aos devidos namespaces? Põe o cursor em cima da classe que não está sendo localizada, se for este o caso, e pressione CTRL+. (ponto).
Responder
Clique aqui para fazer login e interagir na Comunidade :)