471,330 Members | 1,150 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

PrintOut of word document only ( no save )

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.
Aug 25 '08 #1
1 4384
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.
Aug 25 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Neil | last post: by
4 posts views Thread by Kash | last post: by
3 posts views Thread by Niyazi | last post: by
12 posts views Thread by Steve | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.