3
Hello guys I am trying to print a word.doc file, I am using the following code.
using Microsoft.Office.Interop.Word;
Microsoft.Office.Interop.Word.Application application = new Microsoft.Office.Interop.Word.Application();
string CaminhoContrato ="C:\\arquvio.doc";
Document document = application.Documents.Open(CaminhoContrato);
That way I can open it, but I really need to print the file without it being opened. Can someone help me?
Thus it is giving error in the line application.Documents.Open(...)oMissing);
– Fabrício Mendes
@Manufacturing Monealanamendes What a mistake?
– Maicon Carraro
he doesn’t accept the code
– Fabrício Mendes
Leave only the application.Documents.Open(Path); then
– Maicon Carraro
@Fabríciosimonealanamendes I made some changes there
– Maicon Carraro