469,927 Members | 1,737 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Problems using WordAplication: Printing just before quiting...error?

Hi all,

I have developed a component to wrap MS-Word, and I use this to manage my
It“s a simple components, but it“s very useful...to eliminate this very
tiresome declarations like this:

Object flag = Type.Missing;

bla, bla, and things like this...

The component“s name is SPMWordApp...

But I“ve found a little problem when I print out the document....see the
following code:

// Word Object Inicialization
SPMWordApp = new SPM.Office.SPMWord();
SPMWordApp.WordApp.Visible = true;

// Adding a template with formated fields....to be replaced...

// Executing a set of Search and Replace statements with information
obtained from
// a windows form...
SPMWordApp.SearchAndReplace("$TOTAL$", string.Format("{0:C}",SomaT));
// ...
// ...
// ...

// Print out the document....

// And quitind the word application...
SPMWordApp = null;

andt, what happens is that the document is not printed...!!!
But, if you step using F10 key it prints OK.
Is it a very short time between printing the document and quiting Word...?
What can I do to solve this?....a timer or progressbar...?

Joćo Rezende
Nov 15 '05 #1
0 992

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Grim Reaper | last post: by
21 posts views Thread by kimimaro | last post: by
14 posts views Thread by Henk | last post: by
4 posts views Thread by Tracey | last post: by
1 post views Thread by Chad Dittmer via .NET 247 | last post: by
1 post views Thread by Dreamtime | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.