Now I know
word.Application msword = new word.Application();
object missing = Type.Missing;
msword.Visible = false;
try
{
word.Document doc = LinqTool.WordCreateDocument(ref
msword);
LinqTool.WordPrint(ref doc,
"tttttttttttttttttttttttttttttt");
}
catch (Exception ex)
{
MessageBox.Show("Analysis file could not be
saved\r\n\r\n" + ex.Message, "Save xml Error");
}
finally
{ // Always Close the Word document
object Save = (object)false;
msword.Quit(ref Save, ref missing, ref missing);
}
First parameter in Word quit is seting to false then no dummy document is
tryed to be save
--
Kim S.
"Kim S" wrote:
I have a word document I only want to printout ( not save as file ) and I
use Word printout method in backgrund but my XP operativ i so slow that a
"dummy"
dociment also get stored.
which word Printout or quit parameter have I to set to diff. than Missing
Obj. to get word printout to work Its can't be right that I have to user
timer delay of word quit command.
I have try to look in them parameter I have access to.
--
--
Kim S.